xfs
[Top] [All Lists]

[PATCH 5/6] xfs: kill VN_MAPPED

To: xfs@xxxxxxxxxxx
Subject: [PATCH 5/6] xfs: kill VN_MAPPED
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Thu, 31 Jul 2014 17:33:14 +1000
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1406791995-14723-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1406791995-14723-1-git-send-email-david@xxxxxxxxxxxxx>
From: Dave Chinner <dchinner@xxxxxxxxxx>

Only one user, no longer needed.

Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
Signed-off-by: Dave Chinner <david@xxxxxxxxxxxxx>
---
 fs/xfs/xfs_bmap_util.c | 2 +-
 fs/xfs/xfs_vnode.h     | 6 ------
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/fs/xfs/xfs_bmap_util.c b/fs/xfs/xfs_bmap_util.c
index 8da2a6a..bbc748a 100644
--- a/fs/xfs/xfs_bmap_util.c
+++ b/fs/xfs/xfs_bmap_util.c
@@ -1713,7 +1713,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;
        }
diff --git a/fs/xfs/xfs_vnode.h b/fs/xfs/xfs_vnode.h
index bcf0c74..300725d 100644
--- a/fs/xfs/xfs_vnode.h
+++ b/fs/xfs/xfs_vnode.h
@@ -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__ */
-- 
2.0.0

<Prev in Thread] Current Thread [Next in Thread>