Skip to content

Commit 1406b91

Browse files
sfjroJ. Bruce Fields
authored andcommitted
nfsd: fix lost nfserrno() call in nfsd_setattr()
There is a regression in 208d0ac 2014-01-07 nfsd4: break only delegations when appropriate which deletes an nfserrno() call in nfsd_setattr() (by accident, probably), and NFSD becomes ignoring an error from VFS. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
1 parent 2ec197d commit 1406b91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/nfsd/vfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap,
449449
fh_lock(fhp);
450450
host_err = notify_change(dentry, iap, NULL);
451451
fh_unlock(fhp);
452+
err = nfserrno(host_err);
452453

453454
out_put_write_access:
454455
if (size_change)

0 commit comments

Comments
 (0)