NFS: Make read() return an ESTALE if the file has been deleted
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 14 Sep 2006 18:03:14 +0000 (14:03 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 23 Sep 2006 03:25:02 +0000 (23:25 -0400)
commit5f004cf2aa8494708fd8d78e78142b7b2748e765
treec4f10f43217737e08d68167e1866ef5b305ac571
parent2dec51466a08ac1c67da41bfd0518d43d983a2eb
NFS: Make read() return an ESTALE if the file has been deleted

Currently, a read() request will return EIO even if the file has been
deleted on the server, simply because that is what the VM will return
if the call to readpage() fails to update the page.

Ensure that readpage() marks the inode as stale if it receives an ESTALE.
Then return that error to userland.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/read.c