diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 3d67dd7eab4b5..ddf424d76d410 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -1117,7 +1117,9 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct nfsd_file *nf, since = READ_ONCE(file->f_wb_err); if (verf) nfsd_copy_write_verifier(verf, nn); + file_start_write(file); host_err = vfs_iter_write(file, &iter, &pos, flags); + file_end_write(file); if (host_err < 0) { nfsd_reset_write_verifier(nn); trace_nfsd_writeverf_reset(nn, rqstp, host_err);