nfsd4: delete obsolete xdr comments
We don't need comments to tell us these macros are ugly. And we're long past trying to share any of this code with the BSD's. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
This commit is contained in:
Родитель
bc749ca4c4
Коммит
3352d2c2d0
|
@ -83,16 +83,6 @@ check_filename(char *str, int len, __be32 err)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* START OF "GENERIC" DECODE ROUTINES.
|
|
||||||
* These may look a little ugly since they are imported from a "generic"
|
|
||||||
* set of XDR encode/decode routines which are intended to be shared by
|
|
||||||
* all of our NFSv4 implementations (OpenBSD, MacOS X...).
|
|
||||||
*
|
|
||||||
* If the pain of reading these is too great, it should be a straightforward
|
|
||||||
* task to translate them into Linux-specific versions which are more
|
|
||||||
* consistent with the style used in NFSv2/v3...
|
|
||||||
*/
|
|
||||||
#define DECODE_HEAD \
|
#define DECODE_HEAD \
|
||||||
__be32 *p; \
|
__be32 *p; \
|
||||||
__be32 status
|
__be32 status
|
||||||
|
@ -1489,20 +1479,7 @@ nfsd4_decode_compound(struct nfsd4_compoundargs *argp)
|
||||||
|
|
||||||
DECODE_TAIL;
|
DECODE_TAIL;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
* END OF "GENERIC" DECODE ROUTINES.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* START OF "GENERIC" ENCODE ROUTINES.
|
|
||||||
* These may look a little ugly since they are imported from a "generic"
|
|
||||||
* set of XDR encode/decode routines which are intended to be shared by
|
|
||||||
* all of our NFSv4 implementations (OpenBSD, MacOS X...).
|
|
||||||
*
|
|
||||||
* If the pain of reading these is too great, it should be a straightforward
|
|
||||||
* task to translate them into Linux-specific versions which are more
|
|
||||||
* consistent with the style used in NFSv2/v3...
|
|
||||||
*/
|
|
||||||
#define WRITE32(n) *p++ = htonl(n)
|
#define WRITE32(n) *p++ = htonl(n)
|
||||||
#define WRITE64(n) do { \
|
#define WRITE64(n) do { \
|
||||||
*p++ = htonl((u32)((n) >> 32)); \
|
*p++ = htonl((u32)((n) >> 32)); \
|
||||||
|
@ -3252,10 +3229,6 @@ nfsd4_encode_replay(struct nfsd4_compoundres *resp, struct nfsd4_op *op)
|
||||||
ADJUST_ARGS();
|
ADJUST_ARGS();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* END OF "GENERIC" ENCODE ROUTINES.
|
|
||||||
*/
|
|
||||||
|
|
||||||
int
|
int
|
||||||
nfs4svc_encode_voidres(struct svc_rqst *rqstp, __be32 *p, void *dummy)
|
nfs4svc_encode_voidres(struct svc_rqst *rqstp, __be32 *p, void *dummy)
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче