diff options
Diffstat (limited to 'net/sunrpc/xprtrdma/svc_rdma_marshal.c')
-rw-r--r-- | net/sunrpc/xprtrdma/svc_rdma_marshal.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/net/sunrpc/xprtrdma/svc_rdma_marshal.c b/net/sunrpc/xprtrdma/svc_rdma_marshal.c index 65b146297f5a..b681855cf970 100644 --- a/net/sunrpc/xprtrdma/svc_rdma_marshal.c +++ b/net/sunrpc/xprtrdma/svc_rdma_marshal.c | |||
@@ -71,22 +71,6 @@ static u32 *decode_read_list(u32 *va, u32 *vaend) | |||
71 | } | 71 | } |
72 | 72 | ||
73 | /* | 73 | /* |
74 | * Determine number of chunks and total bytes in chunk list. The chunk | ||
75 | * list has already been verified to fit within the RPCRDMA header. | ||
76 | */ | ||
77 | void svc_rdma_rcl_chunk_counts(struct rpcrdma_read_chunk *ch, | ||
78 | int *ch_count, int *byte_count) | ||
79 | { | ||
80 | /* compute the number of bytes represented by read chunks */ | ||
81 | *byte_count = 0; | ||
82 | *ch_count = 0; | ||
83 | for (; ch->rc_discrim != 0; ch++) { | ||
84 | *byte_count = *byte_count + ntohl(ch->rc_target.rs_length); | ||
85 | *ch_count = *ch_count + 1; | ||
86 | } | ||
87 | } | ||
88 | |||
89 | /* | ||
90 | * Decodes a write chunk list. The expected format is as follows: | 74 | * Decodes a write chunk list. The expected format is as follows: |
91 | * descrim : xdr_one | 75 | * descrim : xdr_one |
92 | * nchunks : <count> | 76 | * nchunks : <count> |