nilfs2: Convert to properly refcounting bdi
authorJan Kara <jack@suse.cz>
Wed, 12 Apr 2017 10:24:43 +0000 (12:24 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 20 Apr 2017 18:09:55 +0000 (12:09 -0600)
commit0546c537b15ff171edd43dd97d31a69babdac9ff
tree73b8cf334cad0539f28e5e317ff8b6cf08c11714
parent95fe66de9f0de24f08e875a67722a3d612cd9f2f
nilfs2: Convert to properly refcounting bdi

Similarly to set_bdev_super() NILFS2 just used block device reference to
bdi. Convert it to properly getting bdi reference. The reference will
get automatically dropped on superblock destruction.

CC: linux-nilfs@vger.kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Acked-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/nilfs2/super.c