From: Miklos Szeredi Date: Wed, 17 Oct 2007 06:31:01 +0000 (-0700) Subject: fuse: fix page invalidation X-Git-Tag: v2.6.24-rc1~546 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b10099792b6276c31cee4c021e0a5d3f9a9e33ed;p=pandora-kernel.git fuse: fix page invalidation Other than truncate, there are two cases, when fuse tries to get rid of cached pages: a) in open, if KEEP_CACHE flag is not set b) in getattr, if file size changed spontaneously Until now invalidate_mapping_pages() were used, which didn't get rid of mapped pages. This is wrong, and becomes more wrong as dirty pages are introduced. So instead properly invalidate all pages with invalidate_inode_pages2(). Signed-off-by: Miklos Szeredi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed