Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lnet_return_rx_credits_locked: don't abuse list_entry

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 6d1ff4d6 83683dc6

+1 -1
+1 -1
drivers/staging/lustre/lnet/lnet/lib-move.c
··· 889 889 */ 890 890 LASSERT(msg->msg_kiov); 891 891 892 - rb = list_entry(msg->msg_kiov, struct lnet_rtrbuf, rb_kiov[0]); 892 + rb = container_of(msg->msg_kiov, struct lnet_rtrbuf, rb_kiov[0]); 893 893 rbp = rb->rb_pool; 894 894 895 895 msg->msg_kiov = NULL;