Commit 82e93bab authored by Chuck Lever's avatar Chuck Lever

NFSD: Make @gdev parameter of ->encode_getdeviceinfo a const pointer

This enables callers to be passed const pointer parameters.
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 85dbc978
...@@ -77,7 +77,7 @@ nfsd4_block_encode_volume(struct xdr_stream *xdr, struct pnfs_block_volume *b) ...@@ -77,7 +77,7 @@ nfsd4_block_encode_volume(struct xdr_stream *xdr, struct pnfs_block_volume *b)
__be32 __be32
nfsd4_block_encode_getdeviceinfo(struct xdr_stream *xdr, nfsd4_block_encode_getdeviceinfo(struct xdr_stream *xdr,
struct nfsd4_getdeviceinfo *gdp) const struct nfsd4_getdeviceinfo *gdp)
{ {
struct pnfs_block_deviceaddr *dev = gdp->gd_device; struct pnfs_block_deviceaddr *dev = gdp->gd_device;
int len = sizeof(__be32), ret, i; int len = sizeof(__be32), ret, i;
......
...@@ -51,7 +51,7 @@ struct pnfs_block_deviceaddr { ...@@ -51,7 +51,7 @@ struct pnfs_block_deviceaddr {
}; };
__be32 nfsd4_block_encode_getdeviceinfo(struct xdr_stream *xdr, __be32 nfsd4_block_encode_getdeviceinfo(struct xdr_stream *xdr,
struct nfsd4_getdeviceinfo *gdp); const struct nfsd4_getdeviceinfo *gdp);
__be32 nfsd4_block_encode_layoutget(struct xdr_stream *xdr, __be32 nfsd4_block_encode_layoutget(struct xdr_stream *xdr,
const struct nfsd4_layoutget *lgp); const struct nfsd4_layoutget *lgp);
int nfsd4_block_decode_layoutupdate(__be32 *p, u32 len, struct iomap **iomapp, int nfsd4_block_decode_layoutupdate(__be32 *p, u32 len, struct iomap **iomapp,
......
...@@ -77,7 +77,7 @@ nfsd4_ff_encode_layoutget(struct xdr_stream *xdr, ...@@ -77,7 +77,7 @@ nfsd4_ff_encode_layoutget(struct xdr_stream *xdr,
__be32 __be32
nfsd4_ff_encode_getdeviceinfo(struct xdr_stream *xdr, nfsd4_ff_encode_getdeviceinfo(struct xdr_stream *xdr,
struct nfsd4_getdeviceinfo *gdp) const struct nfsd4_getdeviceinfo *gdp)
{ {
struct pnfs_ff_device_addr *da = gdp->gd_device; struct pnfs_ff_device_addr *da = gdp->gd_device;
int len; int len;
......
...@@ -43,7 +43,7 @@ struct pnfs_ff_layout { ...@@ -43,7 +43,7 @@ struct pnfs_ff_layout {
}; };
__be32 nfsd4_ff_encode_getdeviceinfo(struct xdr_stream *xdr, __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, __be32 nfsd4_ff_encode_layoutget(struct xdr_stream *xdr,
const struct nfsd4_layoutget *lgp); const struct nfsd4_layoutget *lgp);
......
...@@ -27,7 +27,7 @@ struct nfsd4_layout_ops { ...@@ -27,7 +27,7 @@ struct nfsd4_layout_ops {
struct nfs4_client *clp, struct nfs4_client *clp,
struct nfsd4_getdeviceinfo *gdevp); struct nfsd4_getdeviceinfo *gdevp);
__be32 (*encode_getdeviceinfo)(struct xdr_stream *xdr, __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, __be32 (*proc_layoutget)(struct inode *, const struct svc_fh *fhp,
struct nfsd4_layoutget *lgp); struct nfsd4_layoutget *lgp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment