]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
btrfs: drop unused parameter options from open_ctree()
authorDavid Sterba <dsterba@suse.com>
Wed, 9 Oct 2024 14:32:07 +0000 (16:32 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:17 +0000 (14:34 +0100)
Since the new mount option parser in commit ad21f15b0f79 ("btrfs:
switch to the new mount API") we don't pass the options like that
anymore.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/super.c

index b11bfe68dd65fb723308f4ee71e11500b315e2f8..43b7b331b2da36e9c4f3ea37301f6b49c21e1bc9 100644 (file)
@@ -3202,8 +3202,7 @@ int btrfs_check_features(struct btrfs_fs_info *fs_info, bool is_rw_mount)
        return 0;
 }
 
-int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_devices,
-                     const char *options)
+int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_devices)
 {
        u32 sectorsize;
        u32 nodesize;
index 99af64d3f27781f2cdd8b2cd78d778e5cecb2fed..127e31e0834709e66a26c9be7e9af59a139c4ce8 100644 (file)
@@ -52,8 +52,7 @@ struct extent_buffer *btrfs_find_create_tree_block(
 int btrfs_start_pre_rw_mount(struct btrfs_fs_info *fs_info);
 int btrfs_check_super_csum(struct btrfs_fs_info *fs_info,
                           const struct btrfs_super_block *disk_sb);
-int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_devices,
-                     const char *options);
+int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_devices);
 void __cold close_ctree(struct btrfs_fs_info *fs_info);
 int btrfs_validate_super(const struct btrfs_fs_info *fs_info,
                         const struct btrfs_super_block *sb, int mirror_num);
index 029e2bb4466bf9081ad2b47548ce70600d4798a9..b7db43560319058a07d6ecf5d16f451c56736928 100644 (file)
@@ -971,7 +971,7 @@ static int btrfs_fill_super(struct super_block *sb,
                return err;
        }
 
-       err = open_ctree(sb, fs_devices, (char *)data);
+       err = open_ctree(sb, fs_devices);
        if (err) {
                btrfs_err(fs_info, "open_ctree failed");
                return err;