Searched refs:nr_shrink (Results 1 – 4 of 4) sorted by relevance
162 unsigned long nr_shrink) in erofs_shrink_workstation() argument176 if (!--nr_shrink) in erofs_shrink_workstation()
511 int f2fs_try_to_free_nats(struct f2fs_sb_info *sbi, int nr_shrink) in f2fs_try_to_free_nats() argument514 int nr = nr_shrink; in f2fs_try_to_free_nats()520 while (nr_shrink) { in f2fs_try_to_free_nats()532 nr_shrink--; in f2fs_try_to_free_nats()539 return nr - nr_shrink; in f2fs_try_to_free_nats()2628 int f2fs_try_to_free_nids(struct f2fs_sb_info *sbi, int nr_shrink) in f2fs_try_to_free_nids() argument2631 int nr = nr_shrink; in f2fs_try_to_free_nids()2639 while (nr_shrink && nm_i->nid_cnt[FREE_NID] > MAX_FREE_NIDS) { in f2fs_try_to_free_nids()2645 if (!nr_shrink || !batch || in f2fs_try_to_free_nids()2650 nr_shrink--; in f2fs_try_to_free_nids()[all …]
707 unsigned int f2fs_shrink_extent_tree(struct f2fs_sb_info *sbi, int nr_shrink) in f2fs_shrink_extent_tree() argument738 if (node_cnt + tree_cnt >= nr_shrink) in f2fs_shrink_extent_tree()749 remained = nr_shrink - (node_cnt + tree_cnt); in f2fs_shrink_extent_tree()
3480 int f2fs_try_to_free_nats(struct f2fs_sb_info *sbi, int nr_shrink);3615 int f2fs_try_to_free_nids(struct f2fs_sb_info *sbi, int nr_shrink);4155 unsigned int f2fs_shrink_extent_tree(struct f2fs_sb_info *sbi, int nr_shrink);