]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:37:20 +0000 (04:37 -0800)
commitcf206bca3d68a401de7e7bbc293a507e528d0778
treeef4389f558f5a9e7d1aff0fcf2c373c45ee8912e
parent42fdf8c9099e3ad41bfd0bcf9edce9fff72e5ee1
nfsd: Return the correct number of bytes written to the file

commit 09a80f2aef06b7c86143f5c14efd3485e0d2c139 upstream.

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: d890be159a71 "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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/vfs.c