NFSD: Remove NFSSVC_MAXBLKSIZE_V2 macro

The 8192-byte maximum is a protocol-defined limit, and we already
have a symbolic constant defined whose name matches the name of
the limit defined in the protocol. Replace the duplicate.

No change in behavior is expected.

Reviewed-by: NeilBrown <neil@brown.name>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>

+4 -6
-2
fs/nfsd/nfsd.h
··· 47 47 * Maximum blocksizes supported by daemon under various circumstances. 48 48 */ 49 49 #define NFSSVC_MAXBLKSIZE RPCSVC_MAXPAYLOAD 50 - /* NFSv2 is limited by the protocol specification, see RFC 1094 */ 51 - #define NFSSVC_MAXBLKSIZE_V2 (8*1024) 52 50 53 51 struct readdir_cd { 54 52 __be32 err; /* 0, nfserr, or nfserr_eof */
+2 -2
fs/nfsd/nfsproc.c
··· 212 212 SVCFH_fmt(&argp->fh), 213 213 argp->count, argp->offset); 214 214 215 - argp->count = min_t(u32, argp->count, NFSSVC_MAXBLKSIZE_V2); 215 + argp->count = min_t(u32, argp->count, NFS_MAXDATA); 216 216 argp->count = min_t(u32, argp->count, rqstp->rq_res.buflen); 217 217 218 218 resp->pages = rqstp->rq_next_page; ··· 707 707 .pc_argzero = sizeof(struct nfsd_readargs), 708 708 .pc_ressize = sizeof(struct nfsd_readres), 709 709 .pc_cachetype = RC_NOCACHE, 710 - .pc_xdrressize = ST+AT+1+NFSSVC_MAXBLKSIZE_V2/4, 710 + .pc_xdrressize = ST+AT+1+NFS_MAXDATA/4, 711 711 .pc_name = "READ", 712 712 }, 713 713 [NFSPROC_WRITECACHE] = {
+2 -2
fs/nfsd/nfsxdr.c
··· 336 336 /* opaque data */ 337 337 if (xdr_stream_decode_u32(xdr, &args->len) < 0) 338 338 return false; 339 - if (args->len > NFSSVC_MAXBLKSIZE_V2) 339 + if (args->len > NFS_MAXDATA) 340 340 return false; 341 341 342 342 return xdr_stream_subsegment(xdr, &args->payload, args->len); ··· 540 540 p = xdr_reserve_space(xdr, XDR_UNIT * 5); 541 541 if (!p) 542 542 return false; 543 - *p++ = cpu_to_be32(NFSSVC_MAXBLKSIZE_V2); 543 + *p++ = cpu_to_be32(NFS_MAXDATA); 544 544 *p++ = cpu_to_be32(stat->f_bsize); 545 545 *p++ = cpu_to_be32(stat->f_blocks); 546 546 *p++ = cpu_to_be32(stat->f_bfree);