xfs
[Top] [All Lists]

[PATCH 6/6] XFS: use is_bad_inode() directly in xfs_reclaim_inode()

To: xfs@xxxxxxxxxxx
Subject: [PATCH 6/6] XFS: use is_bad_inode() directly in xfs_reclaim_inode()
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Sun, 14 Sep 2008 00:15:00 +1000
In-reply-to: <1221315300-30336-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1221315300-30336-1-git-send-email-david@xxxxxxxxxxxxx>
Signed-off-by: Dave Chinner <david@xxxxxxxxxxxxx>
---
 fs/xfs/linux-2.6/xfs_sync.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/xfs/linux-2.6/xfs_sync.c b/fs/xfs/linux-2.6/xfs_sync.c
index d0354a6..22006b5 100644
--- a/fs/xfs/linux-2.6/xfs_sync.c
+++ b/fs/xfs/linux-2.6/xfs_sync.c
@@ -633,7 +633,7 @@ xfs_reclaim_inode(
         * In the case of a forced shutdown we rely on xfs_iflush() to
         * wait for the inode to be unpinned before returning an error.
         */
-       if (!VN_BAD(VFS_I(ip)) && xfs_iflush(ip, sync_mode) == 0) {
+       if (!is_bad_inode(VFS_I(ip)) && xfs_iflush(ip, sync_mode) == 0) {
                /* synchronize with xfs_iflush_done */
                xfs_iflock(ip);
                xfs_ifunlock(ip);
-- 
1.5.6

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