From: Chuck Lever Date: Sun, 1 Nov 2020 18:38:27 +0000 (-0500) Subject: NFSD: Replace READ* macros in nfsd4_decode_free_stateid() X-Git-Tag: howlett/maple_spf/20210104~331^2~40 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=aec387d5909304810d899f7d90ae57df33f3a75c;p=users%2Fjedix%2Flinux-maple.git NFSD: Replace READ* macros in nfsd4_decode_free_stateid() Signed-off-by: Chuck Lever --- diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index f578bdb9fb8d..205e07d2b9dd 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -1685,13 +1685,7 @@ static __be32 nfsd4_decode_free_stateid(struct nfsd4_compoundargs *argp, struct nfsd4_free_stateid *free_stateid) { - DECODE_HEAD; - - READ_BUF(sizeof(stateid_t)); - free_stateid->fr_stateid.si_generation = be32_to_cpup(p++); - COPYMEM(&free_stateid->fr_stateid.si_opaque, sizeof(stateid_opaque_t)); - - DECODE_TAIL; + return nfsd4_decode_stateid4(argp, &free_stateid->fr_stateid); } static __be32