Lines Matching refs:gap_lebs
246 c->gap_lebs[p] = lnum; in layout_leb_in_gaps()
365 int err, leb_needed_cnt, written, p = 0, old_idx_lebs, *gap_lebs; in layout_in_gaps() local
369 c->gap_lebs = kmalloc_array(c->lst.idx_lebs + 1, sizeof(int), in layout_in_gaps()
371 if (!c->gap_lebs) in layout_in_gaps()
381 kfree(c->gap_lebs); in layout_in_gaps()
382 c->gap_lebs = NULL; in layout_in_gaps()
413 gap_lebs = krealloc(c->gap_lebs, sizeof(int) * in layout_in_gaps()
415 if (!gap_lebs) { in layout_in_gaps()
416 kfree(c->gap_lebs); in layout_in_gaps()
417 c->gap_lebs = NULL; in layout_in_gaps()
420 c->gap_lebs = gap_lebs; in layout_in_gaps()
424 c->gap_lebs[p] = -1; in layout_in_gaps()
1046 if (!c->gap_lebs) in return_gap_lebs()
1050 for (p = c->gap_lebs; *p != -1; p++) { in return_gap_lebs()
1057 kfree(c->gap_lebs); in return_gap_lebs()
1058 c->gap_lebs = NULL; in return_gap_lebs()