Skip to content

Commit

Permalink
NFSD: Fix a handful of coding style issues in write_filehandle()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Jan 6, 2009
1 parent b046ccd commit 54224f0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions fs/nfsd/nfsctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,13 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size)

dname = mesg;
len = qword_get(&mesg, dname, size);
if (len <= 0) return -EINVAL;
if (len <= 0)
return -EINVAL;

path = dname+len+1;
len = qword_get(&mesg, path, size);
if (len <= 0) return -EINVAL;
if (len <= 0)
return -EINVAL;

len = get_int(&mesg, &maxsize);
if (len)
Expand All @@ -418,7 +420,8 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size)
if (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);
mesg[-1] = '\n';
return mesg - buf;
Expand Down

0 comments on commit 54224f0

Please sign in to comment.