btrfs: use rb_entry() instead of container_of
authorGeliang Tang <geliangtang@gmail.com>
Mon, 19 Dec 2016 14:53:41 +0000 (22:53 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Feb 2017 14:50:49 +0000 (15:50 +0100)
commit6b4df8b6c59fc865deb2650b60e38aca4c67a972
tree6e96ec4f2f39292d658bb2568e375b56292e6a1b
parentf74670f7132b002b5ee41edbc8d323500bf490b2
btrfs: use rb_entry() instead of 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>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c