summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-08-07 12:26:25 +0100
committerChristian Brauner <brauner@kernel.org>2023-08-09 08:21:22 +0200
commit6a3207395563f724d91231ec0aa7c4d95bf9591d (patch)
treed0b67bbacd996f47e818af92784a090b3afd8936
parent8887b94d93224e0ef7e1bc6369640e313b8b12f4 (diff)
fs, block: remove bdev->bd_super
bdev->bd_super is unused now, remove it. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Christian Brauner <brauner@kernel.org> Message-Id: <20230807112625.652089-5-hch@lst.de> Signed-off-by: Christian Brauner <brauner@kernel.org>
-rw-r--r--fs/ext4/super.c1
-rw-r--r--fs/super.c3
-rw-r--r--include/linux/blk_types.h1
3 files changed, 0 insertions, 5 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index c94ebf704616..b24f5b9f63e0 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -5572,7 +5572,6 @@ static int __ext4_fill_super(struct fs_context *fc, struct super_block *sb)
spin_lock_init(&sbi->s_bdev_wb_lock);
errseq_check_and_advance(&sb->s_bdev->bd_inode->i_mapping->wb_err,
&sbi->s_bdev_wb_err);
- sb->s_bdev->bd_super = sb;
EXT4_SB(sb)->s_mount_state |= EXT4_ORPHAN_FS;
ext4_orphan_cleanup(sb, es);
EXT4_SB(sb)->s_mount_state &= ~EXT4_ORPHAN_FS;
diff --git a/fs/super.c b/fs/super.c
index e781226e2880..7755cc2a3607 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -1322,7 +1322,6 @@ int get_tree_bdev(struct fs_context *fc,
}
s->s_flags |= SB_ACTIVE;
- bdev->bd_super = s;
}
BUG_ON(fc->root);
@@ -1395,7 +1394,6 @@ struct dentry *mount_bdev(struct file_system_type *fs_type,
}
s->s_flags |= SB_ACTIVE;
- bdev->bd_super = s;
}
return dget(s->s_root);
@@ -1413,7 +1411,6 @@ void kill_block_super(struct super_block *sb)
{
struct block_device *bdev = sb->s_bdev;
- bdev->bd_super = NULL;
generic_shutdown_super(sb);
sync_blockdev(bdev);
blkdev_put(bdev, sb->s_type);
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h
index 0bad62cca3d0..d5c5e59ddbd2 100644
--- a/include/linux/blk_types.h
+++ b/include/linux/blk_types.h
@@ -52,7 +52,6 @@ struct block_device {
atomic_t bd_openers;
spinlock_t bd_size_lock; /* for bd_inode->i_size updates */
struct inode * bd_inode; /* will die */
- struct super_block * bd_super;
void * bd_claiming;
void * bd_holder;
const struct blk_holder_ops *bd_holder_ops;