gfs2: Convert to properly refcounting bdi
authorJan Kara <jack@suse.cz>
Wed, 12 Apr 2017 10:24:42 +0000 (12:24 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 20 Apr 2017 18:09:55 +0000 (12:09 -0600)
commit95fe66de9f0de24f08e875a67722a3d612cd9f2f
treeb762fe4b2b8e3d4d92eb7c467323ad19e191bc99
parent7fbbe972c3ec63a3391997e0cef09964f9236088
gfs2: Convert to properly refcounting bdi

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

CC: Steven Whitehouse <swhiteho@redhat.com>
CC: Bob Peterson <rpeterso@redhat.com>
CC: cluster-devel@redhat.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/gfs2/ops_fstype.c