summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2020-11-01 19:38:27 +0100
committerChuck Lever <chuck.lever@oracle.com>2020-11-30 20:46:41 +0100
commitaec387d5909304810d899f7d90ae57df33f3a75c (patch)
tree266de9d5d5676279e93e997ac75c5cea9886ee24 /fs/nfsd
parentNFSD: Replace READ* macros in nfsd4_decode_destroy_session() (diff)
downloadlinux-aec387d5909304810d899f7d90ae57df33f3a75c.tar.xz
linux-aec387d5909304810d899f7d90ae57df33f3a75c.zip
NFSD: Replace READ* macros in nfsd4_decode_free_stateid()
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4xdr.c8
1 files changed, 1 insertions, 7 deletions
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