Commit dd8c38ba authored by Dave Chinner's avatar Dave Chinner Committed by Dave Chinner

xfs: kill VN_MAPPED

Only one user, no longer needed.
Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent 2667c6f9
...@@ -1766,7 +1766,7 @@ xfs_swap_extents( ...@@ -1766,7 +1766,7 @@ xfs_swap_extents(
* vop_read (or write in the case of autogrow) they block on the iolock * vop_read (or write in the case of autogrow) they block on the iolock
* until we have switched the extents. * until we have switched the extents.
*/ */
if (VN_MAPPED(VFS_I(ip))) { if (mapping_mapped(VFS_I(ip)->i_mapping)) {
error = -EBUSY; error = -EBUSY;
goto out_unlock; goto out_unlock;
} }
......
...@@ -34,10 +34,4 @@ struct attrlist_cursor_kern; ...@@ -34,10 +34,4 @@ struct attrlist_cursor_kern;
{ IO_ISDIRECT, "DIRECT" }, \ { IO_ISDIRECT, "DIRECT" }, \
{ IO_INVIS, "INVIS"} { IO_INVIS, "INVIS"}
/*
* Some useful predicates.
*/
#define VN_MAPPED(vp) mapping_mapped(vp->i_mapping)
#endif /* __XFS_VNODE_H__ */ #endif /* __XFS_VNODE_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment