Lines Matching refs:to_reclaim

605 					u64 to_reclaim)  in calc_reclaim_items_nr()  argument
611 nr = div64_u64(to_reclaim, bytes); in calc_reclaim_items_nr()
622 u64 to_reclaim, bool wait_ordered, in shrink_delalloc() argument
638 if (to_reclaim == U64_MAX) { in shrink_delalloc()
653 to_reclaim = max(to_reclaim, delalloc_bytes >> 3); in shrink_delalloc()
654 items = calc_reclaim_items_nr(fs_info, to_reclaim) * 2; in shrink_delalloc()
669 u64 temp = min(delalloc_bytes, to_reclaim) >> PAGE_SHIFT; in shrink_delalloc()
852 u64 to_reclaim = space_info->reclaim_size; in btrfs_calc_reclaim_metadata_size() local
867 to_reclaim += used - (space_info->total_bytes + avail); in btrfs_calc_reclaim_metadata_size()
869 return to_reclaim; in btrfs_calc_reclaim_metadata_size()
1085 u64 to_reclaim; in btrfs_async_reclaim_metadata_space() local
1094 to_reclaim = btrfs_calc_reclaim_metadata_size(fs_info, space_info); in btrfs_async_reclaim_metadata_space()
1095 if (!to_reclaim) { in btrfs_async_reclaim_metadata_space()
1105 flush_space(fs_info, space_info, to_reclaim, flush_state, false); in btrfs_async_reclaim_metadata_space()
1112 to_reclaim = btrfs_calc_reclaim_metadata_size(fs_info, in btrfs_async_reclaim_metadata_space()
1191 u64 to_reclaim, block_rsv_size; in btrfs_preempt_reclaim_metadata_space() local
1223 to_reclaim = delalloc_size; in btrfs_preempt_reclaim_metadata_space()
1228 to_reclaim = space_info->bytes_pinned; in btrfs_preempt_reclaim_metadata_space()
1232 to_reclaim = btrfs_block_rsv_reserved(delayed_block_rsv); in btrfs_preempt_reclaim_metadata_space()
1235 to_reclaim = btrfs_block_rsv_reserved(delayed_refs_rsv); in btrfs_preempt_reclaim_metadata_space()
1246 to_reclaim >>= 2; in btrfs_preempt_reclaim_metadata_space()
1247 if (!to_reclaim) in btrfs_preempt_reclaim_metadata_space()
1248 to_reclaim = btrfs_calc_insert_metadata_size(fs_info, 1); in btrfs_preempt_reclaim_metadata_space()
1249 flush_space(fs_info, space_info, to_reclaim, flush, true); in btrfs_preempt_reclaim_metadata_space()
1410 u64 to_reclaim; in priority_reclaim_metadata_space() local
1414 to_reclaim = btrfs_calc_reclaim_metadata_size(fs_info, space_info); in priority_reclaim_metadata_space()
1428 flush_space(fs_info, space_info, to_reclaim, states[flush_state], in priority_reclaim_metadata_space()