[XFS] Use xfs_inode_clean() in more places
[deliverable/linux.git] / fs / xfs / xfs_vnodeops.c
index 14140f6225ba513cc0c68a38def2ea37a47aaec5..5390d124ad35a84caa2f8cf053b577f11001c088 100644 (file)
@@ -3454,7 +3454,6 @@ xfs_inode_flush(
        int             flags)
 {
        xfs_mount_t     *mp = ip->i_mount;
-       xfs_inode_log_item_t *iip = ip->i_itemp;
        int             error = 0;
 
        if (XFS_FORCED_SHUTDOWN(mp))
@@ -3464,8 +3463,7 @@ xfs_inode_flush(
         * Bypass inodes which have already been cleaned by
         * the inode flush clustering code inside xfs_iflush
         */
-       if ((ip->i_update_core == 0) &&
-           ((iip == NULL) || !(iip->ili_format.ilf_fields & XFS_ILOG_ALL)))
+       if (xfs_inode_clean(ip))
                return 0;
 
        /*
This page took 0.031822 seconds and 5 git commands to generate.