diff options
author | Jan Kara <jack@suse.cz> | 2017-03-23 01:36:56 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-03-22 20:11:27 -0600 |
commit | e8cb72b322cf4a729633b7e2080fbeab477f6ea2 (patch) | |
tree | 1bf1accf057f327631748d40be3fd4b0877b5515 /mm/madvise.c | |
parent | 810df54a64fb7841d6511f67818f3e1589c249a2 (diff) | |
download | linux-e8cb72b322cf4a729633b7e2080fbeab477f6ea2.tar.gz linux-e8cb72b322cf4a729633b7e2080fbeab477f6ea2.tar.bz2 linux-e8cb72b322cf4a729633b7e2080fbeab477f6ea2.zip |
bdi: Unify bdi->wb_list handling for root wb_writeback
Currently root wb_writeback structure is added to bdi->wb_list in
bdi_init() and never removed. That is different from all other
wb_writeback structures which get added to the list when created and
removed from it before wb_shutdown().
So move list addition of root bdi_writeback to bdi_register() and list
removal of all wb_writeback structures to wb_shutdown(). That way a
wb_writeback structure is on bdi->wb_list if and only if it can handle
writeback and it will make it easier for us to handle shutdown of all
wb_writeback structures in bdi_unregister().
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'mm/madvise.c')
0 files changed, 0 insertions, 0 deletions