OSDN Git Service

xfs: kill VN_MAPPED
authorDave Chinner <dchinner@redhat.com>
Mon, 4 Aug 2014 03:23:35 +0000 (13:23 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 4 Aug 2014 03:23:35 +0000 (13:23 +1000)
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>
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_vnode.h

index 1b79b8c..bf7e615 100644 (file)
@@ -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;
        }
index bcf0c74..300725d 100644 (file)
@@ -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__ */