mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
NFSD: Fix a handful of coding style issues in write_filehandle()
Clean up: follow kernel coding style. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
This commit is contained in:
parent
b046ccdc1f
commit
54224f04ae
1 changed files with 6 additions and 3 deletions
|
@ -390,11 +390,13 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size)
|
||||||
|
|
||||||
dname = mesg;
|
dname = mesg;
|
||||||
len = qword_get(&mesg, dname, size);
|
len = qword_get(&mesg, dname, size);
|
||||||
if (len <= 0) return -EINVAL;
|
if (len <= 0)
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
path = dname+len+1;
|
path = dname+len+1;
|
||||||
len = qword_get(&mesg, path, size);
|
len = qword_get(&mesg, path, size);
|
||||||
if (len <= 0) return -EINVAL;
|
if (len <= 0)
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
len = get_int(&mesg, &maxsize);
|
len = get_int(&mesg, &maxsize);
|
||||||
if (len)
|
if (len)
|
||||||
|
@ -418,7 +420,8 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size)
|
||||||
if (len)
|
if (len)
|
||||||
return len;
|
return len;
|
||||||
|
|
||||||
mesg = buf; len = SIMPLE_TRANSACTION_LIMIT;
|
mesg = buf;
|
||||||
|
len = SIMPLE_TRANSACTION_LIMIT;
|
||||||
qword_addhex(&mesg, &len, (char*)&fh.fh_base, fh.fh_size);
|
qword_addhex(&mesg, &len, (char*)&fh.fh_base, fh.fh_size);
|
||||||
mesg[-1] = '\n';
|
mesg[-1] = '\n';
|
||||||
return mesg - buf;
|
return mesg - buf;
|
||||||
|
|
Loading…
Reference in a new issue