bdi: Make wb->bdi a proper reference
authorJan Kara <jack@suse.cz>
Thu, 23 Mar 2017 00:36:55 +0000 (01:36 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 23 Mar 2017 02:11:25 +0000 (20:11 -0600)
commit810df54a64fb7841d6511f67818f3e1589c249a2
treee74df014f39f898484c99a1c548bf3d14f9254fc
parentb7d680d7bf584bce6023343304b819009a7c3336
bdi: Make wb->bdi a proper reference

Make wb->bdi a proper refcounted reference to bdi for all bdi_writeback
structures except for the one embedded inside struct backing_dev_info.
That will allow us to simplify bdi unregistration.

Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
mm/backing-dev.c