the same calculation is done in p9_client_write
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
{
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;
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;
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;