Lines Matching refs:pick_free
23 * @pick_free: whether it is OK to scan for empty LEBs
29 int pick_free;
103 if (!data->pick_free)
118 * @pick_free: if it is OK to return a free or freeable LEB
125 int min_space, int pick_free,
166 data.pick_free = pick_free;
182 (pick_free &&
195 * @pick_free: controls whether it is OK to pick empty or index LEBs
205 * The additional @pick_free argument controls if this function has to return a
214 * In addition @pick_free is set to %2 by the recovery process in order to
222 int min_space, int pick_free)
224 int err = 0, sum, exclude_index = pick_free == 2 ? 1 : 0;
230 if (pick_free) {
264 pick_free = 0;
312 lp = scan_for_dirty(c, min_space, pick_free, exclude_index);
318 (pick_free && lp->free + lp->dirty == c->leb_size));
369 if (!data->pick_free && lprops->free == c->leb_size)
388 * @pick_free: whether it is OK to scan for empty LEBs
396 int min_space, int pick_free,
409 if (pick_free) {
446 data.pick_free = pick_free;
485 int lebs, rsvd_idx_lebs, pick_free = 0, err, lnum, flags;
504 pick_free = 1;
528 lprops = do_find_free_space(c, min_space, pick_free, squeeze);
543 if (pick_free) {
569 if (pick_free) {