summaryrefslogtreecommitdiff
path: root/fs/nilfs2
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-08-09 16:17:44 +0200
committerJens Axboe <axboe@kernel.dk>2021-08-09 11:53:26 -0600
commita11d7fc2d05fb509cd9e33d4093507d6eda3ad53 (patch)
treee085f4f2ab5aaac4c0bd5a977bb245642026a746 /fs/nilfs2
parentedb0872f44ec9976ea6d052cb4b93cd2d23ac2ba (diff)
downloadlinux-rpi-a11d7fc2d05fb509cd9e33d4093507d6eda3ad53.tar.gz
linux-rpi-a11d7fc2d05fb509cd9e33d4093507d6eda3ad53.tar.bz2
linux-rpi-a11d7fc2d05fb509cd9e33d4093507d6eda3ad53.zip
block: remove the bd_bdi in struct block_device
Just retrieve the bdi from the disk. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Link: https://lore.kernel.org/r/20210809141744.1203023-6-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/nilfs2')
-rw-r--r--fs/nilfs2/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c
index 4abd928b0bc8..f6b2d280aab5 100644
--- a/fs/nilfs2/super.c
+++ b/fs/nilfs2/super.c
@@ -1053,7 +1053,7 @@ 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 = bdi_get(sb->s_bdev->bd_bdi);
+ sb->s_bdi = bdi_get(sb->s_bdev->bd_disk->bdi);
err = load_nilfs(nilfs, sb);
if (err)