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
44e70659
Commit
44e70659
authored
Dec 04, 2002
by
Christoph Hellwig
Committed by
Nathan Scott
Dec 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] get rid of some more dev_t abuse
SGI Modid: 2.5.x-xfs:slinx:134013a
parent
40cb5bc2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
fs/xfs/xfs_buf.h
fs/xfs/xfs_buf.h
+1
-0
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_buf_item.c
+2
-2
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.c
+1
-1
fs/xfs/xfs_trans_buf.c
fs/xfs/xfs_trans_buf.c
+2
-2
No files found.
fs/xfs/xfs_buf.h
View file @
44e70659
...
...
@@ -182,6 +182,7 @@ extern inline xfs_caddr_t xfs_buf_offset(page_buf_t *bp, off_t offset)
#define XFS_BUF_SET_TARGET(bp, target) \
(bp)->pb_target = (target)
#define XFS_BUF_TARGET(bp) ((bp)->pb_target)
#define XFS_BUF_TARGET_DEV(bp) ((bp)->pb_target->pbr_dev)
#define XFS_BUF_SET_VTYPE_REF(bp, type, ref)
#define XFS_BUF_SET_VTYPE(bp, type)
...
...
fs/xfs/xfs_buf_item.c
View file @
44e70659
...
...
@@ -1005,7 +1005,7 @@ xfs_buf_iodone_callbacks(
*/
mp
=
lip
->
li_mountp
;
if
(
XFS_FORCED_SHUTDOWN
(
mp
))
{
ASSERT
(
XFS_BUF_TARGET
_DEV
(
bp
)
==
mp
->
m_dev
);
ASSERT
(
XFS_BUF_TARGET
(
bp
)
==
mp
->
m_ddev_targp
);
XFS_BUF_SUPER_STALE
(
bp
);
xfs_buftrace
(
"BUF_IODONE_CB"
,
bp
);
xfs_buf_do_callbacks
(
bp
,
lip
);
...
...
@@ -1102,7 +1102,7 @@ xfs_buf_error_relse(
lip
=
XFS_BUF_FSPRIVATE
(
bp
,
xfs_log_item_t
*
);
mp
=
(
xfs_mount_t
*
)
lip
->
li_mountp
;
ASSERT
(
XFS_BUF_TARGET
_DEV
(
bp
)
==
mp
->
m_dev
);
ASSERT
(
XFS_BUF_TARGET
(
bp
)
==
mp
->
m_ddev_targp
);
XFS_BUF_STALE
(
bp
);
XFS_BUF_DONE
(
bp
);
...
...
fs/xfs/xfs_mount.c
View file @
44e70659
...
...
@@ -1199,7 +1199,7 @@ xfs_unmountfs_writesb(xfs_mount_t *mp)
XFS_BUF_UNDELAYWRITE
(
sbp
);
XFS_BUF_WRITE
(
sbp
);
XFS_BUF_UNASYNC
(
sbp
);
ASSERT
(
XFS_BUF_TARGET
_DEV
(
sbp
)
==
mp
->
m_dev
);
ASSERT
(
XFS_BUF_TARGET
(
sbp
)
==
mp
->
m_ddev_targp
);
xfsbdstrat
(
mp
,
sbp
);
/* Nevermind errors we might get here. */
error
=
xfs_iowait
(
sbp
);
...
...
fs/xfs/xfs_trans_buf.c
View file @
44e70659
...
...
@@ -1013,7 +1013,7 @@ xfs_trans_buf_item_match(
}
bp
=
blip
->
bli_buf
;
if
((
XFS_BUF_TARGET
_DEV
(
bp
)
==
target
->
pbr_dev
)
&&
if
((
XFS_BUF_TARGET
(
bp
)
==
target
)
&&
(
XFS_BUF_ADDR
(
bp
)
==
blkno
)
&&
(
XFS_BUF_COUNT
(
bp
)
==
len
))
{
/*
...
...
@@ -1070,7 +1070,7 @@ xfs_trans_buf_item_match_all(
}
bp
=
blip
->
bli_buf
;
if
((
XFS_BUF_TARGET
_DEV
(
bp
)
==
target
->
pbr_dev
)
&&
if
((
XFS_BUF_TARGET
(
bp
)
==
target
)
&&
(
XFS_BUF_ADDR
(
bp
)
==
blkno
)
&&
(
XFS_BUF_COUNT
(
bp
)
==
len
))
{
/*
...
...
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