diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-09-25 15:27:51 +0200 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2023-10-16 18:44:28 +0200 |
commit | 73debe47df8e7535e3ca86a050cfd988133fea77 (patch) | |
tree | b8f90b651415410caa0e9d17035a1261c807ebb8 /fs/nfsd/flexfilelayoutxdr.c | |
parent | NFSD: Clean up nfsd4_encode_stateid() (diff) | |
download | linux-73debe47df8e7535e3ca86a050cfd988133fea77.tar.xz linux-73debe47df8e7535e3ca86a050cfd988133fea77.zip |
NFSD: Make @lgp parameter of ->encode_layoutget 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.c')
-rw-r--r-- | fs/nfsd/flexfilelayoutxdr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/flexfilelayoutxdr.c b/fs/nfsd/flexfilelayoutxdr.c index bb205328e043..5319cb97d8a7 100644 --- a/fs/nfsd/flexfilelayoutxdr.c +++ b/fs/nfsd/flexfilelayoutxdr.c @@ -17,9 +17,9 @@ struct ff_idmap { __be32 nfsd4_ff_encode_layoutget(struct xdr_stream *xdr, - struct nfsd4_layoutget *lgp) + const struct nfsd4_layoutget *lgp) { - struct pnfs_ff_layout *fl = lgp->lg_content; + const struct pnfs_ff_layout *fl = lgp->lg_content; int len, mirror_len, ds_len, fh_len; __be32 *p; |