diff options
author | David Sterba <dsterba@suse.com> | 2024-02-22 09:51:33 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-03-04 16:24:54 +0100 |
commit | 1cdeac6da33f220f108394ce81e8c588c8fbc5d9 (patch) | |
tree | 99714bc55f079c6719e3ac17377df33f7b264b93 /fs/btrfs/volumes.h | |
parent | 37bf7718ffa6554bf3be4597d36aec93c5c3ea8f (diff) | |
download | linux-stable-1cdeac6da33f220f108394ce81e8c588c8fbc5d9.tar.gz linux-stable-1cdeac6da33f220f108394ce81e8c588c8fbc5d9.tar.bz2 linux-stable-1cdeac6da33f220f108394ce81e8c588c8fbc5d9.zip |
btrfs: pass btrfs_device to btrfs_scratch_superblocks()
Replace the two parameters bdev and name by one that can be used to get
them both.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r-- | fs/btrfs/volumes.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index 055e095c2f61..feba8d53526c 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h @@ -817,9 +817,7 @@ void btrfs_commit_device_sizes(struct btrfs_transaction *trans); struct list_head * __attribute_const__ btrfs_get_fs_uuids(void); bool btrfs_check_rw_degradable(struct btrfs_fs_info *fs_info, struct btrfs_device *failing_dev); -void btrfs_scratch_superblocks(struct btrfs_fs_info *fs_info, - struct block_device *bdev, - const char *device_path); +void btrfs_scratch_superblocks(struct btrfs_fs_info *fs_info, struct btrfs_device *device); enum btrfs_raid_types __attribute_const__ btrfs_bg_flags_to_raid_index(u64 flags); int btrfs_bg_type_to_factor(u64 flags); |