diff options
author | David Sterba <dsterba@suse.com> | 2024-05-14 17:48:12 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-07-11 16:33:19 +0300 |
commit | 42317ab440c110618b511290284c6d6c10bcffc7 (patch) | |
tree | c3f772cf50094329d52415a9d32cf8e8fd4122ec /fs/btrfs/qgroup.c | |
parent | 839d6ea4f86de1d2e36a1b02561b4ccd597643b9 (diff) | |
download | linux-42317ab440c110618b511290284c6d6c10bcffc7.tar.xz |
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>
Diffstat (limited to 'fs/btrfs/qgroup.c')
-rw-r--r-- | fs/btrfs/qgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c index 629fe893f4ab..b9c5dff960de 100644 --- a/fs/btrfs/qgroup.c +++ b/fs/btrfs/qgroup.c @@ -1340,7 +1340,7 @@ static int flush_reservations(struct btrfs_fs_info *fs_info) ret = btrfs_start_delalloc_roots(fs_info, LONG_MAX, false); if (ret) return ret; - btrfs_wait_ordered_roots(fs_info, U64_MAX, 0, (u64)-1); + btrfs_wait_ordered_roots(fs_info, U64_MAX, NULL); trans = btrfs_join_transaction(fs_info->tree_root); if (IS_ERR(trans)) return PTR_ERR(trans); @@ -4208,7 +4208,7 @@ static int try_flush_qgroup(struct btrfs_root *root) ret = btrfs_start_delalloc_snapshot(root, true); if (ret < 0) goto out; - btrfs_wait_ordered_extents(root, U64_MAX, 0, (u64)-1); + btrfs_wait_ordered_extents(root, U64_MAX, NULL); trans = btrfs_attach_transaction_barrier(root); if (IS_ERR(trans)) { |