提交 6d1ff4d6 编写于 作者: A Al Viro

lnet_return_rx_credits_locked: don't abuse list_entry

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 83683dc6
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册