xfs: kill VN_DIRTY()
[cascardo/linux.git] / fs / xfs / xfs_inode.c
index 1a5e068..fea3c92 100644 (file)
@@ -1635,7 +1635,7 @@ xfs_release(
                truncated = xfs_iflags_test_and_clear(ip, XFS_ITRUNCATED);
                if (truncated) {
                        xfs_iflags_clear(ip, XFS_IDIRTY_RELEASE);
-                       if (VN_DIRTY(VFS_I(ip)) && ip->i_delayed_blks > 0) {
+                       if (ip->i_delayed_blks > 0) {
                                error = filemap_flush(VFS_I(ip)->i_mapping);
                                if (error)
                                        return error;