nfsd: Clean up errors in nfs3proc.c
Subsystems (2)
PATCH 1/1 nfsd: Clean up errors in nfs3proc.c
Fix the following errors reported by checkpatch:
ERROR: need consistent spacing around '+' (ctx:WxV)
ERROR: spaces required around that '?' (ctx:VxW)
Signed-off-by KaiLong Wang <[email protected]>
--- fs/nfsd/nfs3proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/nfsd/nfs3proc.c +2 -2
@@ -171,7 +171,7 @@ nfsd3_proc_read(struct svc_rqst *rqstp)* + 1 (xdr opaque byte count) = 26 */ resp->count = argp->count; -svc_reserve_auth (rqstp, ((1 +NFS3_POST_OP_ATTR_WORDS +3 )<<2 ) + resp->count +4 ); +svc_reserve_auth (rqstp, ((1 +NFS3_POST_OP_ATTR_WORDS +3 )<<2 ) + resp->count +4 );fh_copy (&resp->fh, &argp->fh); resp->status = nfsd_read(rqstp, &resp->fh, argp->offset,
@@ -194,7 +194,7 @@ nfsd3_proc_write(struct svc_rqst *rqstp)SVCFH_fmt (&argp->fh), argp->len, (unsigned long long ) argp->offset, - argp->stable? " stable" : ""); + argp->stable ? " stable" : ""); resp->status = nfserr_fbig; if (argp->offset > (u64)OFFSET_MAX ||
Signature · 1 line
2.17.1
Quoted 9 lines · KaiLong Wang
Fix the following errors reported by checkpatch:
ERROR: need consistent spacing around '+' (ctx:WxV)
ERROR: spaces required around that '?' (ctx:VxW)Signed-off-by KaiLong Wang <[email protected]>--- fs/nfsd/nfs3proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
I've applied 1/4, 2/4, and 4/4. I'm still debating whether to apply 3/4, that "char *<tab>variable" style is used everywhere (though I kind of agree it's an eye-sore).
fs/nfsd/nfs3proc.c nfsd3_proc_read(struct svc_rqst *rqstp) · line 174
Quoted 10 lines
fs/nfsd/nfs3proc.c +1
-1@@ -171,7 +171,7 @@ nfsd3_proc_read(struct svc_rqst *rqstp)* + 1 (xdr opaque byte count) = 26 */ resp->count = argp->count; -svc_reserve_auth (rqstp, ((1 +NFS3_POST_OP_ATTR_WORDS +3 )<<2 ) + resp->count +4 ); +svc_reserve_auth (rqstp, ((1 +NFS3_POST_OP_ATTR_WORDS +3 )<<2 ) + resp->count +4 );
Since this line is already longer than 80 characters, I updated this patch to split it.
Quoted 13 lines
fs/nfsd/nfs3proc.c +1
-1fh_copy (&resp->fh, &argp->fh); resp->status = nfsd_read(rqstp, &resp->fh, argp->offset,@@ -194,7 +194,7 @@ nfsd3_proc_write(struct svc_rqst *rqstp)SVCFH_fmt (&argp->fh), argp->len, (unsigned long long ) argp->offset, - argp->stable? " stable" : ""); + argp->stable ? " stable" : ""); resp->status = nfserr_fbig; if (argp->offset > (u64)OFFSET_MAX ||Signature · 1 line
2.17.1
Signature · 1 line
Chuck Lever