Lines Matching refs:to_reclaim

4657 					u64 to_reclaim)  in calc_reclaim_items_nr()  argument
4663 nr = div64_u64(to_reclaim, bytes); in calc_reclaim_items_nr()
4674 static void shrink_delalloc(struct btrfs_fs_info *fs_info, u64 to_reclaim, in shrink_delalloc() argument
4687 items = calc_reclaim_items_nr(fs_info, to_reclaim); in shrink_delalloc()
4688 to_reclaim = items * EXTENT_SIZE_PER_ITEM; in shrink_delalloc()
4705 max_reclaim = min(delalloc_bytes, to_reclaim); in shrink_delalloc()
4891 u64 to_reclaim = 0; in btrfs_calc_reclaim_metadata_size() local
4894 to_reclaim += ticket->bytes; in btrfs_calc_reclaim_metadata_size()
4896 to_reclaim += ticket->bytes; in btrfs_calc_reclaim_metadata_size()
4897 if (to_reclaim) in btrfs_calc_reclaim_metadata_size()
4898 return to_reclaim; in btrfs_calc_reclaim_metadata_size()
4900 to_reclaim = min_t(u64, num_online_cpus() * SZ_1M, SZ_16M); in btrfs_calc_reclaim_metadata_size()
4901 if (can_overcommit(fs_info, space_info, to_reclaim, in btrfs_calc_reclaim_metadata_size()
4914 to_reclaim = used - expected; in btrfs_calc_reclaim_metadata_size()
4916 to_reclaim = 0; in btrfs_calc_reclaim_metadata_size()
4917 to_reclaim = min(to_reclaim, space_info->bytes_may_use + in btrfs_calc_reclaim_metadata_size()
4919 return to_reclaim; in btrfs_calc_reclaim_metadata_size()
4961 u64 to_reclaim; in btrfs_async_reclaim_metadata_space() local
4970 to_reclaim = btrfs_calc_reclaim_metadata_size(fs_info, space_info, in btrfs_async_reclaim_metadata_space()
4972 if (!to_reclaim) { in btrfs_async_reclaim_metadata_space()
4982 flush_space(fs_info, space_info, to_reclaim, flush_state); in btrfs_async_reclaim_metadata_space()
4989 to_reclaim = btrfs_calc_reclaim_metadata_size(fs_info, in btrfs_async_reclaim_metadata_space()
5023 u64 to_reclaim; in priority_reclaim_metadata_space() local
5027 to_reclaim = btrfs_calc_reclaim_metadata_size(fs_info, space_info, in priority_reclaim_metadata_space()
5029 if (!to_reclaim) { in priority_reclaim_metadata_space()
5036 flush_space(fs_info, space_info, to_reclaim, flush_state); in priority_reclaim_metadata_space()