]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] NFS: Deal with failure of invalidate_inode_pages2()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 20 Oct 2006 06:28:40 +0000 (23:28 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 20 Oct 2006 17:26:39 +0000 (10:26 -0700)
commitcd9ae2b6a75bb1fa0d370929c2d7a7da1ed719d9
tree1bf943b54f47bfbf5198b08b930bd09099ff99b7
parent13bbc06af8a5f65df0f888b442e557c617cadba7
[PATCH] NFS: Deal with failure of invalidate_inode_pages2()

If invalidate_inode_pages2() fails, then it should in principle just be
because the current process was signalled.  In that case, we just want to
ensure that the inode's page cache remains marked as invalid.

Also add a helper to allow the O_DIRECT code to simply mark the page cache as
invalid once it is finished writing, instead of calling
invalidate_inode_pages2() itself.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfs/dir.c
fs/nfs/direct.c
fs/nfs/inode.c
include/linux/nfs_fs.h