Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361756
b: refs/heads/master
c: e49dbbf
h: refs/heads/master
v: v3
  • Loading branch information
Kent Overstreet authored and J. Bruce Fields committed Mar 22, 2013
1 parent 6f6904b commit 3e0ddc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: ac534ff2d5508bdff1358a55d88053da729ff46b
refs/heads/master: e49dbbf3e770aa590a8a464ac4978a09027060b9
3 changes: 2 additions & 1 deletion trunk/fs/nfsd/vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
int host_err;
int stable = *stablep;
int use_wgather;
loff_t pos = offset;

dentry = file->f_path.dentry;
inode = dentry->d_inode;
Expand All @@ -1025,7 +1026,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,

/* Write the data. */
oldfs = get_fs(); set_fs(KERNEL_DS);
host_err = vfs_writev(file, (struct iovec __user *)vec, vlen, &offset);
host_err = vfs_writev(file, (struct iovec __user *)vec, vlen, &pos);
set_fs(oldfs);
if (host_err < 0)
goto out_nfserr;
Expand Down

0 comments on commit 3e0ddc7

Please sign in to comment.