commit | ac503e4a309a3993a069750f95c2815ee5db5aa5 | [log] [tgz] |
---|---|---|
author | Benjamin Coddington <bcodding@redhat.com> | Tue Mar 22 10:28:36 2016 -0400 |
committer | J. Bruce Fields <bfields@redhat.com> | Wed Mar 23 16:02:39 2016 -0400 |
tree | b96495be6e8e44829db04073c6263ac43ac97a05 | |
parent | 4b15da44e742871206582f6aa2997b009648f02f [diff] |
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>