Lines Matching +full:co +full:- +full:located

1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
78 struct rb_node rb_node; /* rb node located in rb-tree */
89 * On a Zoned device zone-capacity can be less than zone-size and if
90 * zone-capacity is not aligned to f2fs segment size(2MB), then the segment
91 * starting just before zone-capacity has some blocks spanning across the
92 * zone-capacity, these blocks are not usable.
102 spin_lock(&free_i->segmap_lock); in free_segs_blk_count_zoned()
104 if (!test_bit(j, free_i->free_segmap)) in free_segs_blk_count_zoned()
106 spin_unlock(&free_i->segmap_lock); in free_segs_blk_count_zoned()
129 return free_blks - ovp_blks; in free_user_blocks()
145 unsigned int min_time = gc_th->min_sleep_time; in increase_sleep_time()
146 unsigned int max_time = gc_th->max_sleep_time; in increase_sleep_time()
148 if (*wait == gc_th->no_gc_sleep_time) in increase_sleep_time()
160 unsigned int min_time = gc_th->min_sleep_time; in decrease_sleep_time()
162 if (*wait == gc_th->no_gc_sleep_time) in decrease_sleep_time()
163 *wait = gc_th->max_sleep_time; in decrease_sleep_time()
165 if ((long long)*wait - (long long)min_time < (long long)min_time) in decrease_sleep_time()
168 *wait -= min_time; in decrease_sleep_time()
174 return free_sections(sbi) > ((sbi->total_sections * limit_perc) / 100); in has_enough_free_blocks()
179 block_t user_block_count = sbi->user_block_count; in has_enough_invalid_blocks()
180 block_t invalid_user_blocks = user_block_count - in has_enough_invalid_blocks()