Skip to content

Commit

Permalink
xfs: kill VN_MAPPED
Browse files Browse the repository at this point in the history
Only one user, no longer needed.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
  • Loading branch information
Dave Chinner authored and Dave Chinner committed Aug 4, 2014
1 parent 2667c6f commit dd8c38b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion fs/xfs/xfs_bmap_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,7 @@ xfs_swap_extents(
* vop_read (or write in the case of autogrow) they block on the iolock
* until we have switched the extents.
*/
if (VN_MAPPED(VFS_I(ip))) {
if (mapping_mapped(VFS_I(ip)->i_mapping)) {
error = -EBUSY;
goto out_unlock;
}
Expand Down
6 changes: 0 additions & 6 deletions fs/xfs/xfs_vnode.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,4 @@ struct attrlist_cursor_kern;
{ IO_ISDIRECT, "DIRECT" }, \
{ IO_INVIS, "INVIS"}

/*
* Some useful predicates.
*/
#define VN_MAPPED(vp) mapping_mapped(vp->i_mapping)


#endif /* __XFS_VNODE_H__ */

0 comments on commit dd8c38b

Please sign in to comment.