]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: use short read as well as i_size to set eof
authorBenjamin Coddington <bcodding@redhat.com>
Tue, 22 Mar 2016 14:28:36 +0000 (10:28 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 23 Mar 2016 20:02:39 +0000 (16:02 -0400)
commita74154e75a028f36e9161a8fcd8b880a1a81cd1e
treeb96495be6e8e44829db04073c6263ac43ac97a05
parentf9dbe482a27d7acb3e0f05cfa70c4433e19e3f74
nfsd: use short read as well as i_size to set eof

Use the result of a local read to determine when to set the eof flag.  This
allows us to return the location of the end of the file atomically at the
time of the read.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
[bfields: add some documentation]
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs3proc.c
fs/nfsd/nfs4xdr.c
fs/nfsd/vfs.h