aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/vfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/vfs.c')
-rw-r--r--fs/nfsd/vfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index 81ff0f4de4b7..bd584bcf1d9f 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -1018,6 +1018,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
1018 host_err = vfs_writev(file, (struct iovec __user *)vec, vlen, &offset); 1018 host_err = vfs_writev(file, (struct iovec __user *)vec, vlen, &offset);
1019 set_fs(oldfs); 1019 set_fs(oldfs);
1020 if (host_err >= 0) { 1020 if (host_err >= 0) {
1021 *cnt = host_err;
1021 nfsdstats.io_write += host_err; 1022 nfsdstats.io_write += host_err;
1022 fsnotify_modify(file->f_path.dentry); 1023 fsnotify_modify(file->f_path.dentry);
1023 } 1024 }
@@ -1063,10 +1064,9 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
1063 } 1064 }
1064 1065
1065 dprintk("nfsd: write complete host_err=%d\n", host_err); 1066 dprintk("nfsd: write complete host_err=%d\n", host_err);
1066 if (host_err >= 0) { 1067 if (host_err >= 0)
1067 err = 0; 1068 err = 0;
1068 *cnt = host_err; 1069 else
1069 } else
1070 err = nfserrno(host_err); 1070 err = nfserrno(host_err);
1071out: 1071out:
1072 return err; 1072 return err;