mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
RDS: use rb_entry()
To make the code clearer, use rb_entry() instead of container_of() to deal with rbtree. Signed-off-by: Geliang Tang <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Acked-by: Santosh Shilimkar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
7f7cd56c33
commit
a763f78cea
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ void rds_rdma_drop_keys(struct rds_sock *rs)
|
|||
/* Release any MRs associated with this socket */
|
||||
spin_lock_irqsave(&rs->rs_rdma_lock, flags);
|
||||
while ((node = rb_first(&rs->rs_rdma_keys))) {
|
||||
mr = container_of(node, struct rds_mr, r_rb_node);
|
||||
mr = rb_entry(node, struct rds_mr, r_rb_node);
|
||||
if (mr->r_trans == rs->rs_transport)
|
||||
mr->r_invalidate = 0;
|
||||
rb_erase(&mr->r_rb_node, &rs->rs_rdma_keys);
|
||||
|
|
|
|||
Loading…
Reference in a new issue