Commit 442a6290 authored by Chuck Lever's avatar Chuck Lever

NFSD: Clean up nfsctl white-space damage

Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent c42bebca
...@@ -324,7 +324,7 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size) ...@@ -324,7 +324,7 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size)
len = qword_get(&mesg, dname, size); len = qword_get(&mesg, dname, size);
if (len <= 0) if (len <= 0)
return -EINVAL; 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) if (len <= 0)
...@@ -338,7 +338,7 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size) ...@@ -338,7 +338,7 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size)
return -EINVAL; return -EINVAL;
maxsize = min(maxsize, NFS3_FHSIZE); maxsize = min(maxsize, NFS3_FHSIZE);
if (qword_get(&mesg, mesg, size)>0) if (qword_get(&mesg, mesg, size) > 0)
return -EINVAL; return -EINVAL;
/* we have all the words, they are in buf.. */ /* we have all the words, they are in buf.. */
...@@ -346,7 +346,7 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size) ...@@ -346,7 +346,7 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size)
if (!dom) if (!dom)
return -ENOMEM; return -ENOMEM;
len = exp_rootfh(netns(file), dom, path, &fh, maxsize); len = exp_rootfh(netns(file), dom, path, &fh, maxsize);
auth_domain_put(dom); auth_domain_put(dom);
if (len) if (len)
return len; return len;
...@@ -418,8 +418,8 @@ static ssize_t write_threads(struct file *file, char *buf, size_t size) ...@@ -418,8 +418,8 @@ static ssize_t write_threads(struct file *file, char *buf, size_t size)
* OR * OR
* *
* Input: * Input:
* buf: C string containing whitespace- * buf: C string containing whitespace-
* separated unsigned integer values * separated unsigned integer values
* representing the number of NFSD * representing the number of NFSD
* threads to start in each pool * threads to start in each pool
* size: non-zero length of C string in @buf * 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) ...@@ -526,7 +526,7 @@ static ssize_t __write_versions(struct file *file, char *buf, size_t size)
char *sep; char *sep;
struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id); struct nfsd_net *nn = net_generic(netns(file), nfsd_net_id);
if (size>0) { if (size > 0) {
if (nn->nfsd_serv) if (nn->nfsd_serv)
/* Cannot change versions without updating /* Cannot change versions without updating
* nn->nfsd_serv->sv_xdrsize, and reallocing * nn->nfsd_serv->sv_xdrsize, and reallocing
...@@ -637,11 +637,11 @@ static ssize_t __write_versions(struct file *file, char *buf, size_t size) ...@@ -637,11 +637,11 @@ static ssize_t __write_versions(struct file *file, char *buf, size_t size)
* OR * OR
* *
* Input: * Input:
* buf: C string containing whitespace- * buf: C string containing whitespace-
* separated positive or negative * separated positive or negative
* integer values representing NFS * integer values representing NFS
* protocol versions to enable ("+n") * protocol versions to enable ("+n")
* or disable ("-n") * or disable ("-n")
* size: non-zero length of C string in @buf * size: non-zero length of C string in @buf
* Output: * Output:
* On success: status of zero or more protocol versions has * 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 ...@@ -705,7 +705,7 @@ static ssize_t __write_ports_addfd(char *buf, struct net *net, const struct cred
} }
/* /*
* A transport listener is added by writing it's transport name and * A transport listener is added by writing its transport name and
* a port number. * a port number.
*/ */
static ssize_t __write_ports_addxprt(char *buf, struct net *net, const struct cred *cred) static ssize_t __write_ports_addxprt(char *buf, struct net *net, const struct cred *cred)
...@@ -832,9 +832,9 @@ int nfsd_max_blksize; ...@@ -832,9 +832,9 @@ int nfsd_max_blksize;
* OR * OR
* *
* Input: * Input:
* buf: C string containing an unsigned * buf: C string containing an unsigned
* integer value representing the new * integer value representing the new
* NFS blksize * NFS blksize
* size: non-zero length of C string in @buf * size: non-zero length of C string in @buf
* Output: * Output:
* On success: passed-in buffer filled with '\n'-terminated C string * 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) ...@@ -881,9 +881,9 @@ static ssize_t write_maxblksize(struct file *file, char *buf, size_t size)
* OR * OR
* *
* Input: * Input:
* buf: C string containing an unsigned * buf: C string containing an unsigned
* integer value representing the new * integer value representing the new
* number of max connections * number of max connections
* size: non-zero length of C string in @buf * size: non-zero length of C string in @buf
* Output: * Output:
* On success: passed-in buffer filled with '\n'-terminated C string * 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) ...@@ -1065,7 +1065,7 @@ static ssize_t write_recoverydir(struct file *file, char *buf, size_t size)
* OR * OR
* *
* Input: * Input:
* buf: any value * buf: any value
* size: non-zero length of C string in @buf * size: non-zero length of C string in @buf
* Output: * Output:
* passed-in buffer filled with "Y" or "N" with a newline * passed-in buffer filled with "Y" or "N" with a newline
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment