Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 153695
b: refs/heads/master
c: e4636d5
h: refs/heads/master
i:
  153693: da19405
  153691: 3a2eb47
  153687: c2842f3
  153679: ac59a8e
  153663: ee02855
v: v3
  • Loading branch information
J. Bruce Fields committed Jun 16, 2009
1 parent dc72830 commit f21b08d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d911df7b8d44de41661363a4e29ee710180ba025
refs/heads/master: e4636d535e32768c8c500641ddb144f56e3dc5c0
15 changes: 8 additions & 7 deletions trunk/fs/nfsd/vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1053,19 +1053,20 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
oldfs = get_fs(); set_fs(KERNEL_DS);
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);
}
if (host_err < 0)
goto out_nfserr;
*cnt = host_err;
nfsdstats.io_write += host_err;
fsnotify_modify(file->f_path.dentry);

/* clear setuid/setgid flag after write */
if (host_err >= 0 && (inode->i_mode & (S_ISUID | S_ISGID)))
if (inode->i_mode & (S_ISUID | S_ISGID))
kill_suid(dentry);

if (host_err >= 0 && stable && use_wgather)
if (stable && use_wgather)
host_err = wait_for_concurrent_writes(file);

out_nfserr:
dprintk("nfsd: write complete host_err=%d\n", host_err);
if (host_err >= 0)
err = 0;
Expand Down

0 comments on commit f21b08d

Please sign in to comment.