@@ -493,7 +493,6 @@ static void cramfs_kill_sb(struct super_block *sb)
put_mtd_device(sb->s_mtd);
sb->s_mtd = NULL;
} else if (IS_ENABLED(CONFIG_CRAMFS_BLOCKDEV) && sb->s_bdev) {
- sb->s_bdev->bd_super = NULL;
sync_blockdev(sb->s_bdev);
blkdev_put(sb->s_bdev, sb);
}
@@ -5563,7 +5563,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;
@@ -593,7 +593,6 @@ static void romfs_kill_sb(struct super_block *sb)
#endif
#ifdef CONFIG_ROMFS_ON_BLOCK
if (sb->s_bdev) {
- sb->s_bdev->bd_super = NULL;
sync_blockdev(sb->s_bdev);
blkdev_put(sb->s_bdev, sb);
}
@@ -1369,7 +1369,6 @@ int get_tree_bdev(struct fs_context *fc,
return error;
}
s->s_flags |= SB_ACTIVE;
- s->s_bdev->bd_super = s;
}
BUG_ON(fc->root);
@@ -1423,7 +1422,6 @@ struct dentry *mount_bdev(struct file_system_type *fs_type,
}
s->s_flags |= SB_ACTIVE;
- s->s_bdev->bd_super = s;
}
return dget(s->s_root);
@@ -1436,7 +1434,6 @@ void kill_block_super(struct super_block *sb)
generic_shutdown_super(sb);
if (bdev) {
- bdev->bd_super = NULL;
sync_blockdev(bdev);
blkdev_put(bdev, sb);
}
@@ -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;
bdev->bd_super is unused now, remove it. Signed-off-by: Christoph Hellwig <hch@lst.de> --- fs/cramfs/inode.c | 1 - fs/ext4/super.c | 1 - fs/romfs/super.c | 1 - fs/super.c | 3 --- include/linux/blk_types.h | 1 - 5 files changed, 7 deletions(-)