From: Jan Kara Date: Wed, 12 Apr 2017 10:24:43 +0000 (+0200) Subject: nilfs2: Convert to properly refcounting bdi X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0546c537b15ff171edd43dd97d31a69babdac9ff;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jan Kara Acked-by: Ryusuke Konishi Signed-off-by: Jens Axboe --- diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index e1872f36147f..feb796a38b8d 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c @@ -1068,7 +1068,8 @@ nilfs_fill_super(struct super_block *sb, void *data, int silent) sb->s_time_gran = 1; sb->s_max_links = NILFS_LINK_MAX; - sb->s_bdi = bdev_get_queue(sb->s_bdev)->backing_dev_info; + sb->s_bdi = bdi_get(sb->s_bdev->bd_bdi); + sb->s_iflags |= SB_I_DYNBDI; err = load_nilfs(nilfs, sb); if (err)