summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/flexfilelayoutxdr.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2023-09-25 15:28:17 +0200
committerChuck Lever <chuck.lever@oracle.com>2023-10-16 18:44:29 +0200
commit82e93bab50625deef545bc5291fd2749e9aabcd6 (patch)
tree69055fce2661922278b3a6fc473ac0a8d118bb27 /fs/nfsd/flexfilelayoutxdr.h
parentNFSD: Clean up nfsd4_encode_layoutreturn() (diff)
downloadlinux-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.h2
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);