diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-09-25 15:28:17 +0200 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2023-10-16 18:44:29 +0200 |
commit | 82e93bab50625deef545bc5291fd2749e9aabcd6 (patch) | |
tree | 69055fce2661922278b3a6fc473ac0a8d118bb27 /fs/nfsd/flexfilelayoutxdr.h | |
parent | NFSD: Clean up nfsd4_encode_layoutreturn() (diff) | |
download | linux-82e93bab50625deef545bc5291fd2749e9aabcd6.tar.xz linux-82e93bab50625deef545bc5291fd2749e9aabcd6.zip |
NFSD: Make @gdev parameter of ->encode_getdeviceinfo a const pointer
This enables callers to be passed const pointer parameters.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/flexfilelayoutxdr.h')
-rw-r--r-- | fs/nfsd/flexfilelayoutxdr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/flexfilelayoutxdr.h b/fs/nfsd/flexfilelayoutxdr.h index a447efb7759b..6d5a1066a903 100644 --- a/fs/nfsd/flexfilelayoutxdr.h +++ b/fs/nfsd/flexfilelayoutxdr.h @@ -43,7 +43,7 @@ struct pnfs_ff_layout { }; __be32 nfsd4_ff_encode_getdeviceinfo(struct xdr_stream *xdr, - struct nfsd4_getdeviceinfo *gdp); + const struct nfsd4_getdeviceinfo *gdp); __be32 nfsd4_ff_encode_layoutget(struct xdr_stream *xdr, const struct nfsd4_layoutget *lgp); |