diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-09-25 16:27:45 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2023-10-16 19:44:28 +0300 |
commit | 40bb2baaa8edecfc21a3c176e4af1a3445157677 (patch) | |
tree | 49066e83056489bcc54192213cc2ba8f8258fd0e /fs/nfsd/pnfs.h | |
parent | 76bebcc7640eaac7213ab6ef97b3376733c69123 (diff) | |
download | linux-40bb2baaa8edecfc21a3c176e4af1a3445157677.tar.xz |
NFSD: Clean up nfsd4_encode_stateid()
Update the encoder function name to match the type name, as is the
convention with other such encoder utility functions, and with
nfsd4_decode_stateid4().
Make the @stateid argument a const so that callers of
nfsd4_encode_stateid4() in the future can be passed const pointers
to structures.
Since the compiler is allowed to add padding to structs, use the
wire (spec-defined) size when reserving buffer space.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/pnfs.h')
0 files changed, 0 insertions, 0 deletions