Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218941
b: refs/heads/master
c: 8d40fa2
h: refs/heads/master
i:
  218939: ae7843d
v: v3
  • Loading branch information
jvrao authored and Eric Van Hensbergen committed Oct 28, 2010
1 parent bcf2bbd commit 244595c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 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: 3e24ad2ff9d477f949acd0982cf12e58812210cb
refs/heads/master: 8d40fa2492eb3dcf02468eef2f6bba450be42b22
10 changes: 2 additions & 8 deletions trunk/fs/9p/vfs_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ v9fs_file_write(struct file *filp, const char __user * data,
{
ssize_t retval;
size_t total = 0;
int n, rsize;
int n;
struct p9_fid *fid;
struct p9_client *clnt;
struct inode *inode = filp->f_path.dentry->d_inode;
Expand All @@ -234,8 +234,6 @@ v9fs_file_write(struct file *filp, const char __user * data,
fid = filp->private_data;
clnt = fid->clnt;

rsize = fid->iounit ? fid->iounit : clnt->msize - P9_IOHDRSZ;

retval = generic_write_checks(filp, &origin, &count, 0);
if (retval)
goto out;
Expand All @@ -248,11 +246,7 @@ v9fs_file_write(struct file *filp, const char __user * data,
goto out;

do {
if (count < rsize)
rsize = count;

n = p9_client_write(fid, NULL, data+total, origin+total,
rsize);
n = p9_client_write(fid, NULL, data+total, origin+total, count);
if (n <= 0)
break;
count -= n;
Expand Down

0 comments on commit 244595c

Please sign in to comment.