Skip to content

Commit 442a629

Browse files
committed
NFSD: Clean up nfsctl white-space damage
Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent c42bebc commit 442a629

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

fs/nfsd/nfsctl.c

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size)
324324
len = qword_get(&mesg, dname, size);
325325
if (len <= 0)
326326
return -EINVAL;
327-
327+
328328
path = dname+len+1;
329329
len = qword_get(&mesg, path, size);
330330
if (len <= 0)
@@ -338,15 +338,15 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size)
338338
return -EINVAL;
339339
maxsize = min(maxsize, NFS3_FHSIZE);
340340

341-
if (qword_get(&mesg, mesg, size)>0)
341+
if (qword_get(&mesg, mesg, size) > 0)
342342
return -EINVAL;
343343

344344
/* we have all the words, they are in buf.. */
345345
dom = unix_domain_find(dname);
346346
if (!dom)
347347
return -ENOMEM;
348348

349-
len = exp_rootfh(netns(file), dom, path, &fh, maxsize);
349+
len = exp_rootfh(netns(file), dom, path, &fh, maxsize);
350350
auth_domain_put(dom);
351351
if (len)
352352
return len;
@@ -418,8 +418,8 @@ static ssize_t write_threads(struct file *file, char *buf, size_t size)
418418
* OR
419419
*
420420
* Input:
421-
* buf: C string containing whitespace-
422-
* separated unsigned integer values
421+
* buf: C string containing whitespace-
422+
* separated unsigned integer values
423423
* representing the number of NFSD
424424
* threads to start in each pool
425425
* size: non-zero length of C string in @buf
@@ -526,7 +526,7 @@ static ssize_t __write_versions(struct file *file, char *buf, size_t size)
526526
char *sep;
527527
struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id);
528528

529-
if (size>0) {
529+
if (size > 0) {
530530
if (nn->nfsd_serv)
531531
/* Cannot change versions without updating
532532
* nn->nfsd_serv->sv_xdrsize, and reallocing
@@ -637,11 +637,11 @@ static ssize_t __write_versions(struct file *file, char *buf, size_t size)
637637
* OR
638638
*
639639
* Input:
640-
* buf: C string containing whitespace-
641-
* separated positive or negative
642-
* integer values representing NFS
643-
* protocol versions to enable ("+n")
644-
* or disable ("-n")
640+
* buf: C string containing whitespace-
641+
* separated positive or negative
642+
* integer values representing NFS
643+
* protocol versions to enable ("+n")
644+
* or disable ("-n")
645645
* size: non-zero length of C string in @buf
646646
* Output:
647647
* On success: status of zero or more protocol versions has
@@ -705,7 +705,7 @@ static ssize_t __write_ports_addfd(char *buf, struct net *net, const struct cred
705705
}
706706

707707
/*
708-
* A transport listener is added by writing it's transport name and
708+
* A transport listener is added by writing its transport name and
709709
* a port number.
710710
*/
711711
static ssize_t __write_ports_addxprt(char *buf, struct net *net, const struct cred *cred)
@@ -832,9 +832,9 @@ int nfsd_max_blksize;
832832
* OR
833833
*
834834
* Input:
835-
* buf: C string containing an unsigned
836-
* integer value representing the new
837-
* NFS blksize
835+
* buf: C string containing an unsigned
836+
* integer value representing the new
837+
* NFS blksize
838838
* size: non-zero length of C string in @buf
839839
* Output:
840840
* On success: passed-in buffer filled with '\n'-terminated C string
@@ -881,9 +881,9 @@ static ssize_t write_maxblksize(struct file *file, char *buf, size_t size)
881881
* OR
882882
*
883883
* Input:
884-
* buf: C string containing an unsigned
885-
* integer value representing the new
886-
* number of max connections
884+
* buf: C string containing an unsigned
885+
* integer value representing the new
886+
* number of max connections
887887
* size: non-zero length of C string in @buf
888888
* Output:
889889
* On success: passed-in buffer filled with '\n'-terminated C string
@@ -1065,7 +1065,7 @@ static ssize_t write_recoverydir(struct file *file, char *buf, size_t size)
10651065
* OR
10661066
*
10671067
* Input:
1068-
* buf: any value
1068+
* buf: any value
10691069
* size: non-zero length of C string in @buf
10701070
* Output:
10711071
* passed-in buffer filled with "Y" or "N" with a newline

0 commit comments

Comments
 (0)