diff options
author | David Chinner <dgc@sgi.com> | 2008-03-05 21:43:59 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-04-17 21:37:51 -0400 |
commit | 3354040897f828644be6ca5783588e9f64a53b8e (patch) | |
tree | c41cfb4584e13225b1f4578e64c8739d88a8537c /fs/xfs/xfs_vnodeops.c | |
parent | bad5584332e888ac40ca13584e8c114149ddb01e (diff) |
[XFS] Use xfs_inode_clean() in more places
Remove open coded checks for the whether the inode is clean and replace
them with an inlined function.
SGI-PV: 977461
SGI-Modid: xfs-linux-melb:xfs-kern:30503a
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index 14140f6225ba..5390d124ad35 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -3454,7 +3454,6 @@ xfs_inode_flush( | |||
3454 | int flags) | 3454 | int flags) |
3455 | { | 3455 | { |
3456 | xfs_mount_t *mp = ip->i_mount; | 3456 | xfs_mount_t *mp = ip->i_mount; |
3457 | xfs_inode_log_item_t *iip = ip->i_itemp; | ||
3458 | int error = 0; | 3457 | int error = 0; |
3459 | 3458 | ||
3460 | if (XFS_FORCED_SHUTDOWN(mp)) | 3459 | if (XFS_FORCED_SHUTDOWN(mp)) |
@@ -3464,8 +3463,7 @@ xfs_inode_flush( | |||
3464 | * Bypass inodes which have already been cleaned by | 3463 | * Bypass inodes which have already been cleaned by |
3465 | * the inode flush clustering code inside xfs_iflush | 3464 | * the inode flush clustering code inside xfs_iflush |
3466 | */ | 3465 | */ |
3467 | if ((ip->i_update_core == 0) && | 3466 | if (xfs_inode_clean(ip)) |
3468 | ((iip == NULL) || !(iip->ili_format.ilf_fields & XFS_ILOG_ALL))) | ||
3469 | return 0; | 3467 | return 0; |
3470 | 3468 | ||
3471 | /* | 3469 | /* |