Merge branch 'master' into next

This commit is contained in:
James Morris
2009-06-09 09:27:53 +10:00
353 changed files with 12683 additions and 1550 deletions

View File

@@ -1018,6 +1018,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
host_err = vfs_writev(file, (struct iovec __user *)vec, vlen, &offset);
set_fs(oldfs);
if (host_err >= 0) {
*cnt = host_err;
nfsdstats.io_write += host_err;
fsnotify_modify(file->f_path.dentry);
}
@@ -1063,10 +1064,9 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
}
dprintk("nfsd: write complete host_err=%d\n", host_err);
if (host_err >= 0) {
if (host_err >= 0)
err = 0;
*cnt = host_err;
} else
else
err = nfserrno(host_err);
out:
return err;