Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d1ae67a2
Commit
d1ae67a2
authored
Oct 15, 2002
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XFS: Remove struct pm entirely - it was never defined in the Linux port.
Modid: 2.5.x-xfs:slinx:129236a
parent
0e4c68e4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
20 deletions
+14
-20
fs/xfs/linux/xfs_lrw.c
fs/xfs/linux/xfs_lrw.c
+11
-15
fs/xfs/linux/xfs_lrw.h
fs/xfs/linux/xfs_lrw.h
+1
-1
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.c
+1
-1
fs/xfs/xfs_inode.h
fs/xfs/xfs_inode.h
+0
-1
fs/xfs/xfs_rw.c
fs/xfs/xfs_rw.c
+1
-1
fs/xfs/xfs_rw.h
fs/xfs/xfs_rw.h
+0
-1
No files found.
fs/xfs/linux/xfs_lrw.c
View file @
d1ae67a2
...
...
@@ -44,9 +44,9 @@
#define XFS_STRAT_WRITE_IMAPS 2
STATIC
int
xfs_iomap_read
(
xfs_iocore_t
*
,
loff_t
,
size_t
,
int
,
pb_bmap_t
*
,
int
*
,
struct
pm
*
);
int
*
);
STATIC
int
xfs_iomap_write
(
xfs_iocore_t
*
,
loff_t
,
size_t
,
pb_bmap_t
*
,
int
*
,
int
,
struct
pm
*
);
int
*
,
int
);
STATIC
int
xfs_iomap_write_delay
(
xfs_iocore_t
*
,
loff_t
,
size_t
,
pb_bmap_t
*
,
int
*
,
int
,
int
);
STATIC
int
xfs_iomap_write_direct
(
xfs_iocore_t
*
,
loff_t
,
size_t
,
pb_bmap_t
*
,
...
...
@@ -233,8 +233,7 @@ xfs_zero_last_block(
xfs_iocore_t
*
io
,
xfs_off_t
offset
,
xfs_fsize_t
isize
,
xfs_fsize_t
end_size
,
struct
pm
*
pmp
)
xfs_fsize_t
end_size
)
{
xfs_fileoff_t
last_fsb
;
xfs_mount_t
*
mp
;
...
...
@@ -313,8 +312,7 @@ xfs_zero_eof(
xfs_iocore_t
*
io
,
xfs_off_t
offset
,
/* starting I/O offset */
xfs_fsize_t
isize
,
/* current inode size */
xfs_fsize_t
end_size
,
/* terminal inode size */
struct
pm
*
pmp
)
xfs_fsize_t
end_size
)
/* terminal inode size */
{
struct
inode
*
ip
=
LINVFS_GET_IP
(
vp
);
xfs_fileoff_t
start_zero_fsb
;
...
...
@@ -340,7 +338,7 @@ xfs_zero_eof(
* First handle zeroing the block on which isize resides.
* We only zero a part of that block so it is handled specially.
*/
error
=
xfs_zero_last_block
(
ip
,
io
,
offset
,
isize
,
end_size
,
pmp
);
error
=
xfs_zero_last_block
(
ip
,
io
,
offset
,
isize
,
end_size
);
if
(
error
)
{
ASSERT
(
ismrlocked
(
io
->
io_lock
,
MR_UPDATE
));
ASSERT
(
ismrlocked
(
io
->
io_iolock
,
MR_UPDATE
));
...
...
@@ -596,7 +594,7 @@ xfs_write(
if
(
!
direct
&&
(
*
offset
>
isize
&&
isize
))
{
error
=
xfs_zero_eof
(
BHV_TO_VNODE
(
bdp
),
io
,
*
offset
,
isize
,
*
offset
+
size
,
NULL
);
isize
,
*
offset
+
size
);
if
(
error
)
{
xfs_iunlock
(
xip
,
XFS_ILOCK_EXCL
|
iolock
);
return
(
-
error
);
...
...
@@ -790,7 +788,7 @@ xfs_bmap(bhv_desc_t *bdp,
if
(
flags
&
PBF_READ
)
{
lockmode
=
xfs_ilock_map_shared
(
ip
);
error
=
xfs_iomap_read
(
&
ip
->
i_iocore
,
offset
,
count
,
XFS_BMAPI_ENTIRE
,
pbmapp
,
npbmaps
,
NULL
);
XFS_BMAPI_ENTIRE
,
pbmapp
,
npbmaps
);
xfs_iunlock_map_shared
(
ip
,
lockmode
);
}
else
{
/* PBF_WRITE */
ASSERT
(
flags
&
PBF_WRITE
);
...
...
@@ -812,7 +810,7 @@ xfs_bmap(bhv_desc_t *bdp,
}
retry:
error
=
xfs_iomap_write
(
&
ip
->
i_iocore
,
offset
,
count
,
pbmapp
,
npbmaps
,
flags
,
NULL
);
pbmapp
,
npbmaps
,
flags
);
/* xfs_iomap_write unlocks/locks/unlocks */
if
(
error
==
ENOSPC
)
{
...
...
@@ -1145,8 +1143,7 @@ xfs_iomap_read(
size_t
count
,
int
flags
,
pb_bmap_t
*
pbmapp
,
int
*
npbmaps
,
struct
pm
*
pmp
)
int
*
npbmaps
)
{
xfs_fileoff_t
offset_fsb
;
xfs_fileoff_t
end_fsb
;
...
...
@@ -1199,8 +1196,7 @@ xfs_iomap_write(
size_t
count
,
pb_bmap_t
*
pbmapp
,
int
*
npbmaps
,
int
ioflag
,
struct
pm
*
pmp
)
int
ioflag
)
{
int
maps
;
int
error
=
0
;
...
...
@@ -1217,7 +1213,7 @@ xfs_iomap_write(
*/
found
=
0
;
error
=
xfs_iomap_read
(
io
,
offset
,
count
,
flags
,
pbmapp
,
npbmaps
,
NULL
);
error
=
xfs_iomap_read
(
io
,
offset
,
count
,
flags
,
pbmapp
,
npbmaps
);
if
(
error
)
goto
out
;
...
...
fs/xfs/linux/xfs_lrw.h
View file @
d1ae67a2
...
...
@@ -45,7 +45,7 @@ extern int xfsbdstrat (struct xfs_mount *, struct xfs_buf *);
extern
int
xfs_bdstrat_cb
(
struct
xfs_buf
*
);
extern
int
xfs_zero_eof
(
vnode_t
*
,
struct
xfs_iocore
*
,
xfs_off_t
,
xfs_fsize_t
,
xfs_fsize_t
,
struct
pm
*
);
xfs_fsize_t
,
xfs_fsize_t
);
extern
ssize_t
xfs_read
(
struct
bhv_desc
*
bdp
,
struct
file
*
filp
,
...
...
fs/xfs/xfs_inode.c
View file @
d1ae67a2
...
...
@@ -1714,7 +1714,7 @@ xfs_igrow_start(
* and any blocks between the old and new file sizes.
*/
error
=
xfs_zero_eof
(
XFS_ITOV
(
ip
),
&
ip
->
i_iocore
,
new_size
,
isize
,
new_size
,
NULL
);
new_size
);
return
error
;
}
...
...
fs/xfs/xfs_inode.h
View file @
d1ae67a2
...
...
@@ -98,7 +98,6 @@ struct xfs_inode_log_item;
struct
xfs_mount
;
struct
xfs_trans
;
struct
xfs_dquot
;
struct
pm
;
/*
...
...
fs/xfs/xfs_rw.c
View file @
d1ae67a2
...
...
@@ -362,7 +362,7 @@ xfs_inval_cached_pages(
XFS_ILOCK
(
mp
,
io
,
XFS_ILOCK_EXCL
|
XFS_EXTSIZE_RD
);
isize
=
XFS_SIZE
(
mp
,
io
);
if
(
offset
>
isize
)
{
xfs_zero_eof
(
vp
,
io
,
offset
,
isize
,
offset
,
NULL
);
xfs_zero_eof
(
vp
,
io
,
offset
,
isize
,
offset
);
}
XFS_IUNLOCK
(
mp
,
io
,
XFS_ILOCK_EXCL
|
XFS_EXTSIZE_RD
);
}
...
...
fs/xfs/xfs_rw.h
View file @
d1ae67a2
...
...
@@ -42,7 +42,6 @@ struct xfs_inode;
struct
xfs_iocore
;
struct
xfs_mount
;
struct
xfs_trans
;
struct
pm
;
/*
* Maximum count of bmaps used by read and write paths.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment