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/dev-replace.c | |
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/dev-replace.c')
-rw-r--r-- | fs/btrfs/dev-replace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index 1c02d4dc0b72..e24d784898fc 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c @@ -998,8 +998,7 @@ error: btrfs_sysfs_remove_device(src_device); btrfs_sysfs_update_devid(tgt_device); if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &src_device->dev_state)) - btrfs_scratch_superblocks(fs_info, src_device->bdev, - src_device->name->str); + btrfs_scratch_superblocks(fs_info, src_device); /* write back the superblocks */ trans = btrfs_start_transaction(root, 0); |