mm/backing-dev.c: use rb_entry()
authorGeliang Tang <geliangtang@gmail.com>
Wed, 22 Feb 2017 23:45:52 +0000 (15:45 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 23 Feb 2017 00:41:30 +0000 (16:41 -0800)
commitbc71226b0690c21bdf50c9c9d08c5dc9ef98764e
tree5ba2427a369aa0fe2ad669c87047e52c6f20e6af
parent21440d7eb9044001b7fdb71d0163689f60a0f2a1
mm/backing-dev.c: use rb_entry()

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

Link: http://lkml.kernel.org/r/671275de093d93ddc7c6f77ddc0d357149691a39.1484306840.git.geliangtang@gmail.com
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Cc: Jens Axboe <axboe@fb.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/backing-dev.c