Skip to content

Commit 01c5db7

Browse files
committed
btrfs: drop unused parameter data from btrfs_fill_super()
The only caller passes NULL, we can drop the parameter. This is since the new mount option parser done in 3bb17a2 ("btrfs: add get_tree callback for new mount API"). Reviewed-by: Anand Jain <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 87cbab8 commit 01c5db7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fs/btrfs/super.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -946,8 +946,7 @@ static int get_default_subvol_objectid(struct btrfs_fs_info *fs_info, u64 *objec
946946
}
947947

948948
static int btrfs_fill_super(struct super_block *sb,
949-
struct btrfs_fs_devices *fs_devices,
950-
void *data)
949+
struct btrfs_fs_devices *fs_devices)
951950
{
952951
struct inode *inode;
953952
struct btrfs_fs_info *fs_info = btrfs_sb(sb);
@@ -1893,7 +1892,7 @@ static int btrfs_get_tree_super(struct fs_context *fc)
18931892
snprintf(sb->s_id, sizeof(sb->s_id), "%pg", bdev);
18941893
shrinker_debugfs_rename(sb->s_shrink, "sb-btrfs:%s", sb->s_id);
18951894
btrfs_sb(sb)->bdev_holder = &btrfs_fs_type;
1896-
ret = btrfs_fill_super(sb, fs_devices, NULL);
1895+
ret = btrfs_fill_super(sb, fs_devices);
18971896
}
18981897

18991898
if (ret) {

0 commit comments

Comments
 (0)