dm bio prison: use rb_entry() rather than container_of()
authorGeliang Tang <geliangtang@gmail.com>
Sat, 6 May 2017 15:39:10 +0000 (23:39 +0800)
committerMike Snitzer <snitzer@redhat.com>
Mon, 19 Jun 2017 15:03:50 +0000 (11:03 -0400)
commit6e333d0be346372390785ecd9a0ddcf7ea9f82ed
tree978d770929bc18c0e01b2b054e3a2e47f481b3eb
parent23d70c5e52dd68448bb14fdef5efe04d81973b31
dm bio prison: use rb_entry() rather than container_of()

To make the code clearer, use rb_entry() instead of container_of() to
deal with rbtree.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Acked-by: Coly Li <colyli@suse.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-bio-prison-v1.c
drivers/md/dm-bio-prison-v2.c