]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: Return the correct number of bytes written to the file
authorTrond Myklebust <trondmy@gmail.com>
Tue, 17 Dec 2019 17:33:33 +0000 (12:33 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 17 Dec 2019 19:32:20 +0000 (14:32 -0500)
commit8dda9953ae34195e37b3292a2fe71f2657d38dd3
treea8de6d7050d8cf2b9b302e4dbc6ec45182903765
parentd3eed400aa09d7f3fb3798b76ddeaa364af4d5a6
nfsd: Return the correct number of bytes written to the file

We must allow for the fact that iov_iter_write() could have returned
a short write (e.g. if there was an ENOSPC issue).

Fixes: da3eca79942b "nfsd: Add I/O trace points in the NFSv4 write path"
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/vfs.c