NFS: Don't SIGBUS if nfs_vm_page_mkwrite races with a cache invalidation
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 4 Oct 2010 21:59:08 +0000 (17:59 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 19 Oct 2010 23:37:54 +0000 (19:37 -0400)
commitbc4866b6e0b44f8ea0df22a16e5927714beb4983
treebe5249600ca096b2ea4cf0ad6d8eea73cdeed966
parent955a857e062642cd3ebe1dc7bb38c0f85d8f8f17
NFS: Don't SIGBUS if nfs_vm_page_mkwrite races with a cache invalidation

In the case where we lock the page, and then find out that the page has
been thrown out of the page cache, we should just return VM_FAULT_NOPAGE.
This is what block_page_mkwrite() does in these situations.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@kernel.org
fs/nfs/file.c