summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ordered-data.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2024-05-14 16:48:12 +0200
committerDavid Sterba <dsterba@suse.com>2024-07-11 15:33:19 +0200
commit42317ab440c110618b511290284c6d6c10bcffc7 (patch)
treec3f772cf50094329d52415a9d32cf8e8fd4122ec /fs/btrfs/ordered-data.h
parentbtrfs: automatically remove the subvolume qgroup (diff)
downloadlinux-42317ab440c110618b511290284c6d6c10bcffc7.tar.xz
linux-42317ab440c110618b511290284c6d6c10bcffc7.zip
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/ordered-data.h')
-rw-r--r--fs/btrfs/ordered-data.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ordered-data.h b/fs/btrfs/ordered-data.h
index 4a4dd15d38ba..2ec329e2f0f3 100644
--- a/fs/btrfs/ordered-data.h
+++ b/fs/btrfs/ordered-data.h
@@ -193,9 +193,9 @@ struct btrfs_ordered_extent *btrfs_lookup_ordered_range(
void btrfs_get_ordered_extents_for_logging(struct btrfs_inode *inode,
struct list_head *list);
u64 btrfs_wait_ordered_extents(struct btrfs_root *root, u64 nr,
- const u64 range_start, const u64 range_len);
+ const struct btrfs_block_group *bg);
void btrfs_wait_ordered_roots(struct btrfs_fs_info *fs_info, u64 nr,
- const u64 range_start, const u64 range_len);
+ const struct btrfs_block_group *bg);
void btrfs_lock_and_flush_ordered_range(struct btrfs_inode *inode, u64 start,
u64 end,
struct extent_state **cached_state);