diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-09-25 09:28:17 -0400 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2023-10-16 12:44:29 -0400 |
commit | 82e93bab50625deef545bc5291fd2749e9aabcd6 (patch) | |
tree | 69055fce2661922278b3a6fc473ac0a8d118bb27 /fs/nfsd/pnfs.h | |
parent | 85dbc978b33be6f5e2e06e34b5219d730d5f9aa4 (diff) |
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/pnfs.h')
-rw-r--r-- | fs/nfsd/pnfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/pnfs.h b/fs/nfsd/pnfs.h index d8e1a333fa0a..de1e0dfed06a 100644 --- a/fs/nfsd/pnfs.h +++ b/fs/nfsd/pnfs.h @@ -27,7 +27,7 @@ struct nfsd4_layout_ops { struct nfs4_client *clp, struct nfsd4_getdeviceinfo *gdevp); __be32 (*encode_getdeviceinfo)(struct xdr_stream *xdr, - struct nfsd4_getdeviceinfo *gdevp); + const struct nfsd4_getdeviceinfo *gdevp); __be32 (*proc_layoutget)(struct inode *, const struct svc_fh *fhp, struct nfsd4_layoutget *lgp); |