aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/file.c')
-rw-r--r--kernel/file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/file.c b/kernel/file.c
index e7b52c5..fc03b1e 100644
--- a/kernel/file.c
+++ b/kernel/file.c
@@ -75,7 +75,11 @@ void fuse_finish_open(struct inode *inode, struct file *file,
if (outarg->open_flags & FOPEN_DIRECT_IO)
file->f_op = &fuse_direct_io_file_operations;
if (!(outarg->open_flags & FOPEN_KEEP_CACHE))
+#ifdef KERNEL_2_6_21_PLUS
+ invalidate_mapping_pages(inode->i_mapping, 0, -1);
+#else
invalidate_inode_pages(inode->i_mapping);
+#endif
ff->fh = outarg->fh;
file->private_data = ff;
}