Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d95cd53 authored by Chuck Lever's avatar Chuck Lever Committed by Anna Schumaker
Browse files

xprtrdma: Remove rpcrdma_buffer_get_rep_locked()



Clean up: There is only one remaining call site for this helper.

Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent e68699cc
Loading
Loading
Loading
Loading
+3 −12
Original line number Original line Diff line number Diff line
@@ -1175,17 +1175,6 @@ rpcrdma_buffer_create(struct rpcrdma_xprt *r_xprt)
	return rc;
	return rc;
}
}


static struct rpcrdma_rep *
rpcrdma_buffer_get_rep_locked(struct rpcrdma_buffer *buf)
{
	struct rpcrdma_rep *rep;

	rep = list_first_entry(&buf->rb_recv_bufs,
			       struct rpcrdma_rep, rr_list);
	list_del(&rep->rr_list);
	return rep;
}

static void
static void
rpcrdma_destroy_rep(struct rpcrdma_rep *rep)
rpcrdma_destroy_rep(struct rpcrdma_rep *rep)
{
{
@@ -1239,7 +1228,9 @@ rpcrdma_buffer_destroy(struct rpcrdma_buffer *buf)
	while (!list_empty(&buf->rb_recv_bufs)) {
	while (!list_empty(&buf->rb_recv_bufs)) {
		struct rpcrdma_rep *rep;
		struct rpcrdma_rep *rep;


		rep = rpcrdma_buffer_get_rep_locked(buf);
		rep = list_first_entry(&buf->rb_recv_bufs,
				       struct rpcrdma_rep, rr_list);
		list_del(&rep->rr_list);
		rpcrdma_destroy_rep(rep);
		rpcrdma_destroy_rep(rep);
	}
	}