aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lnet
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-02-18 00:37:49 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2017-10-11 22:36:53 -0400
commit6d1ff4d6f37dc3c14d9fc08dbbbb920a12c21f84 (patch)
tree1fac0bcee08915556aa24f7ed665220cb0117195 /drivers/staging/lustre/lnet
parentxen: don't open-code iov_iter_kvec() (diff)
downloadlinux-dev-6d1ff4d6f37dc3c14d9fc08dbbbb920a12c21f84.tar.xz
linux-dev-6d1ff4d6f37dc3c14d9fc08dbbbb920a12c21f84.zip
lnet_return_rx_credits_locked: don't abuse list_entry
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/staging/lustre/lnet')
-rw-r--r--drivers/staging/lustre/lnet/lnet/lib-move.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lnet/lnet/lib-move.c b/drivers/staging/lustre/lnet/lnet/lib-move.c
index bc0779c02d97..2b96c02bed50 100644
--- a/drivers/staging/lustre/lnet/lnet/lib-move.c
+++ b/drivers/staging/lustre/lnet/lnet/lib-move.c
@@ -889,7 +889,7 @@ lnet_return_rx_credits_locked(struct lnet_msg *msg)
*/
LASSERT(msg->msg_kiov);
- rb = list_entry(msg->msg_kiov, struct lnet_rtrbuf, rb_kiov[0]);
+ rb = container_of(msg->msg_kiov, struct lnet_rtrbuf, rb_kiov[0]);
rbp = rb->rb_pool;
msg->msg_kiov = NULL;