summaryrefslogtreecommitdiff
path: root/fs/nfsd/blocklayoutxdr.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2023-09-25 09:27:51 -0400
committerChuck Lever <chuck.lever@oracle.com>2023-10-16 12:44:28 -0400
commit73debe47df8e7535e3ca86a050cfd988133fea77 (patch)
treeb8f90b651415410caa0e9d17035a1261c807ebb8 /fs/nfsd/blocklayoutxdr.h
parent40bb2baaa8edecfc21a3c176e4af1a3445157677 (diff)
downloadlinux-73debe47df8e7535e3ca86a050cfd988133fea77.tar.gz
linux-73debe47df8e7535e3ca86a050cfd988133fea77.tar.bz2
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/blocklayoutxdr.h')
-rw-r--r--fs/nfsd/blocklayoutxdr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/blocklayoutxdr.h b/fs/nfsd/blocklayoutxdr.h
index bc5166bfe46b..5f88539e81a1 100644
--- a/fs/nfsd/blocklayoutxdr.h
+++ b/fs/nfsd/blocklayoutxdr.h
@@ -53,7 +53,7 @@ struct pnfs_block_deviceaddr {
__be32 nfsd4_block_encode_getdeviceinfo(struct xdr_stream *xdr,
struct nfsd4_getdeviceinfo *gdp);
__be32 nfsd4_block_encode_layoutget(struct xdr_stream *xdr,
- struct nfsd4_layoutget *lgp);
+ const struct nfsd4_layoutget *lgp);
int nfsd4_block_decode_layoutupdate(__be32 *p, u32 len, struct iomap **iomapp,
u32 block_size);
int nfsd4_scsi_decode_layoutupdate(__be32 *p, u32 len, struct iomap **iomapp,