Lines Matching +full:co +full:- +full:located
1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
79 struct rb_node rb_node; /* rb node located in rb-tree */
90 * On a Zoned device zone-capacity can be less than zone-size and if
91 * zone-capacity is not aligned to f2fs segment size(2MB), then the segment
92 * starting just before zone-capacity has some blocks spanning across the
93 * zone-capacity, these blocks are not usable.
103 spin_lock(&free_i->segmap_lock); in free_segs_blk_count_zoned()
105 if (!test_bit(j, free_i->free_segmap)) in free_segs_blk_count_zoned()
107 spin_unlock(&free_i->segmap_lock); in free_segs_blk_count_zoned()
130 return free_blks - ovp_blks; in free_user_blocks()
146 unsigned int min_time = gc_th->min_sleep_time; in increase_sleep_time()
147 unsigned int max_time = gc_th->max_sleep_time; in increase_sleep_time()
149 if (*wait == gc_th->no_gc_sleep_time) in increase_sleep_time()
161 unsigned int min_time = gc_th->min_sleep_time; in decrease_sleep_time()
163 if (*wait == gc_th->no_gc_sleep_time) in decrease_sleep_time()
164 *wait = gc_th->max_sleep_time; in decrease_sleep_time()
166 if ((long long)*wait - (long long)min_time < (long long)min_time) in decrease_sleep_time()
169 *wait -= min_time; in decrease_sleep_time()
175 return free_sections(sbi) > ((sbi->total_sections * limit_perc) / 100); in has_enough_free_blocks()
180 block_t user_block_count = sbi->user_block_count; in has_enough_invalid_blocks()
181 block_t invalid_user_blocks = user_block_count - in has_enough_invalid_blocks()