diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_super.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_super.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index 650c24ab27e2..47bca4e4696b 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c | |||
@@ -197,7 +197,7 @@ xfs_revalidate_inode( | |||
197 | inode->i_flags |= S_NOATIME; | 197 | inode->i_flags |= S_NOATIME; |
198 | else | 198 | else |
199 | inode->i_flags &= ~S_NOATIME; | 199 | inode->i_flags &= ~S_NOATIME; |
200 | vp->v_flag &= ~VMODIFIED; | 200 | xfs_iflags_clear(ip, XFS_IMODIFIED); |
201 | } | 201 | } |
202 | 202 | ||
203 | void | 203 | void |
@@ -441,13 +441,12 @@ xfs_fs_clear_inode( | |||
441 | if (XFS_I(inode)) | 441 | if (XFS_I(inode)) |
442 | xfs_inactive(XFS_I(inode)); | 442 | xfs_inactive(XFS_I(inode)); |
443 | 443 | ||
444 | VN_LOCK(vp); | ||
445 | vp->v_flag &= ~VMODIFIED; | ||
446 | VN_UNLOCK(vp, 0); | ||
447 | 444 | ||
448 | if (XFS_I(inode)) | 445 | if (XFS_I(inode)) { |
446 | xfs_iflags_clear(XFS_I(inode), XFS_IMODIFIED); | ||
449 | if (xfs_reclaim(XFS_I(inode))) | 447 | if (xfs_reclaim(XFS_I(inode))) |
450 | panic("%s: cannot reclaim 0x%p\n", __FUNCTION__, vp); | 448 | panic("%s: cannot reclaim 0x%p\n", __FUNCTION__, vp); |
449 | } | ||
451 | 450 | ||
452 | ASSERT(XFS_I(inode) == NULL); | 451 | ASSERT(XFS_I(inode) == NULL); |
453 | 452 | ||