mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
svcrdma: Const-ify the xdr_buf arguments
Clean up: Ensure the code in rw.c does not modify the argument, and enable callers to also use "const struct xdr_buf *". Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
@@ -197,7 +197,7 @@ struct svc_rdma_write_info {
|
|||||||
__be32 *wi_segs;
|
__be32 *wi_segs;
|
||||||
|
|
||||||
/* SGL constructor arguments */
|
/* SGL constructor arguments */
|
||||||
struct xdr_buf *wi_xdr;
|
const struct xdr_buf *wi_xdr;
|
||||||
unsigned char *wi_base;
|
unsigned char *wi_base;
|
||||||
unsigned int wi_next_off;
|
unsigned int wi_next_off;
|
||||||
|
|
||||||
@@ -405,7 +405,7 @@ static void svc_rdma_pagelist_to_sg(struct svc_rdma_write_info *info,
|
|||||||
struct svc_rdma_rw_ctxt *ctxt)
|
struct svc_rdma_rw_ctxt *ctxt)
|
||||||
{
|
{
|
||||||
unsigned int sge_no, sge_bytes, page_off, page_no;
|
unsigned int sge_no, sge_bytes, page_off, page_no;
|
||||||
struct xdr_buf *xdr = info->wi_xdr;
|
const struct xdr_buf *xdr = info->wi_xdr;
|
||||||
struct scatterlist *sg;
|
struct scatterlist *sg;
|
||||||
struct page **page;
|
struct page **page;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user