Skip to content

Commit fbb514c

Browse files
fdmananakdave
authored andcommitted
btrfs: remove fs_info argument from maybe_clamp_preempt()
We don't need it since we can grab fs_info from the given space_info. So remove the fs_info argument. Reviewed-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Anand Jain <asj@kernel.org> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent ce0825e commit fbb514c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fs/btrfs/space-info.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,9 +1666,9 @@ static inline bool is_normal_flushing(enum btrfs_reserve_flush_enum flush)
16661666
(flush == BTRFS_RESERVE_FLUSH_ALL_STEAL);
16671667
}
16681668

1669-
static inline void maybe_clamp_preempt(struct btrfs_fs_info *fs_info,
1670-
struct btrfs_space_info *space_info)
1669+
static inline void maybe_clamp_preempt(struct btrfs_space_info *space_info)
16711670
{
1671+
struct btrfs_fs_info *fs_info = space_info->fs_info;
16721672
u64 ordered = percpu_counter_sum_positive(&fs_info->ordered_bytes);
16731673
u64 delalloc = percpu_counter_sum_positive(&fs_info->delalloc_bytes);
16741674

@@ -1811,7 +1811,7 @@ static int __reserve_bytes(struct btrfs_fs_info *fs_info,
18111811
* preemptive flushing in order to keep up with
18121812
* the workload.
18131813
*/
1814-
maybe_clamp_preempt(fs_info, space_info);
1814+
maybe_clamp_preempt(space_info);
18151815

18161816
space_info->flush = true;
18171817
trace_btrfs_trigger_flush(fs_info,

0 commit comments

Comments
 (0)