mirror of
https://github.com/torvalds/linux.git
synced 2025-08-16 14:41:22 +02:00
btrfs: simplify range parameters of btrfs_wait_ordered_roots()
The range is specified only in two ways, we can simplify the case for the whole filesystem range as a NULL block group parameter. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
839d6ea4f8
commit
42317ab440
13 changed files with 38 additions and 28 deletions
|
@ -684,7 +684,7 @@ static int btrfs_dev_replace_start(struct btrfs_fs_info *fs_info,
|
|||
if (ret)
|
||||
btrfs_err(fs_info, "kobj add dev failed %d", ret);
|
||||
|
||||
btrfs_wait_ordered_roots(fs_info, U64_MAX, 0, (u64)-1);
|
||||
btrfs_wait_ordered_roots(fs_info, U64_MAX, NULL);
|
||||
|
||||
/*
|
||||
* Commit dev_replace state and reserve 1 item for it.
|
||||
|
@ -880,7 +880,7 @@ static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info,
|
|||
mutex_unlock(&dev_replace->lock_finishing_cancel_unmount);
|
||||
return ret;
|
||||
}
|
||||
btrfs_wait_ordered_roots(fs_info, U64_MAX, 0, (u64)-1);
|
||||
btrfs_wait_ordered_roots(fs_info, U64_MAX, NULL);
|
||||
|
||||
/*
|
||||
* We have to use this loop approach because at this point src_device
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue