aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_fs_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_fs_subr.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_fs_subr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/xfs/linux-2.6/xfs_fs_subr.c b/fs/xfs/linux-2.6/xfs_fs_subr.c
index e2897912fec7..ac6d34cc355d 100644
--- a/fs/xfs/linux-2.6/xfs_fs_subr.c
+++ b/fs/xfs/linux-2.6/xfs_fs_subr.c
@@ -61,8 +61,7 @@ xfs_flushinval_pages(
61 int ret = 0; 61 int ret = 0;
62 62
63 if (VN_CACHED(vp)) { 63 if (VN_CACHED(vp)) {
64 if (VN_TRUNC(vp)) 64 xfs_iflags_clear(ip, XFS_ITRUNCATED);
65 VUNTRUNCATE(vp);
66 ret = filemap_write_and_wait(inode->i_mapping); 65 ret = filemap_write_and_wait(inode->i_mapping);
67 if (!ret) 66 if (!ret)
68 truncate_inode_pages(inode->i_mapping, first); 67 truncate_inode_pages(inode->i_mapping, first);
@@ -84,8 +83,7 @@ xfs_flush_pages(
84 int ret2; 83 int ret2;
85 84
86 if (VN_DIRTY(vp)) { 85 if (VN_DIRTY(vp)) {
87 if (VN_TRUNC(vp)) 86 xfs_iflags_clear(ip, XFS_ITRUNCATED);
88 VUNTRUNCATE(vp);
89 ret = filemap_fdatawrite(inode->i_mapping); 87 ret = filemap_fdatawrite(inode->i_mapping);
90 if (flags & XFS_B_ASYNC) 88 if (flags & XFS_B_ASYNC)
91 return ret; 89 return ret;