Searched refs:to_reclaim (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/fs/btrfs/
H A Dextent-tree.c4326 static inline int calc_reclaim_items_nr(struct btrfs_root *root, u64 to_reclaim) calc_reclaim_items_nr() argument
4332 nr = (int)div64_u64(to_reclaim, bytes); calc_reclaim_items_nr()
4343 static void shrink_delalloc(struct btrfs_root *root, u64 to_reclaim, u64 orig, shrink_delalloc() argument
4358 items = calc_reclaim_items_nr(root, to_reclaim); shrink_delalloc()
4359 to_reclaim = items * EXTENT_SIZE_PER_ITEM; shrink_delalloc()
4377 max_reclaim = min(delalloc_bytes, to_reclaim); shrink_delalloc()
4541 u64 to_reclaim; btrfs_calc_reclaim_metadata_size() local
4543 to_reclaim = min_t(u64, num_online_cpus() * 1024 * 1024, btrfs_calc_reclaim_metadata_size()
4546 if (can_overcommit(root, space_info, to_reclaim, btrfs_calc_reclaim_metadata_size()
4548 to_reclaim = 0; btrfs_calc_reclaim_metadata_size()
4562 to_reclaim = used - expected; btrfs_calc_reclaim_metadata_size()
4564 to_reclaim = 0; btrfs_calc_reclaim_metadata_size()
4565 to_reclaim = min(to_reclaim, space_info->bytes_may_use + btrfs_calc_reclaim_metadata_size()
4570 return to_reclaim; btrfs_calc_reclaim_metadata_size()
4618 u64 to_reclaim; btrfs_async_reclaim_metadata_space() local
4624 to_reclaim = btrfs_calc_reclaim_metadata_size(fs_info->fs_root, btrfs_async_reclaim_metadata_space()
4626 if (!to_reclaim) btrfs_async_reclaim_metadata_space()
4631 flush_space(fs_info->fs_root, space_info, to_reclaim, btrfs_async_reclaim_metadata_space()
4632 to_reclaim, flush_state); btrfs_async_reclaim_metadata_space()

Completed in 112 milliseconds