Lines Matching refs:freelist
392 arena->freelist[lane].sub = 1 - arena->freelist[lane].sub; in btt_flog_write()
393 if (++(arena->freelist[lane].seq) == 4) in btt_flog_write()
394 arena->freelist[lane].seq = 1; in btt_flog_write()
396 arena->freelist[lane].has_err = 1; in btt_flog_write()
397 arena->freelist[lane].block = ent_lba(le32_to_cpu(ent->old_map)); in btt_flog_write()
509 if (arena->freelist[lane].has_err) { in arena_clear_freelist_error()
511 u32 lba = arena->freelist[lane].block; in arena_clear_freelist_error()
527 arena->freelist[lane].has_err = 0; in arena_clear_freelist_error()
540 arena->freelist = kcalloc(arena->nfree, sizeof(struct free_entry), in btt_freelist_init()
542 if (!arena->freelist) in btt_freelist_init()
555 arena->freelist[i].sub = 1 - new; in btt_freelist_init()
556 arena->freelist[i].seq = nd_inc_seq(le32_to_cpu(log_new.seq)); in btt_freelist_init()
557 arena->freelist[i].block = log_oldmap; in btt_freelist_init()
565 arena->freelist[i].has_err = 1; in btt_freelist_init()
810 kfree(arena->freelist); in free_arenas()
1337 if (btt_is_badblock(btt, arena, arena->freelist[lane].block)) in btt_write_pg()
1338 arena->freelist[lane].has_err = 1; in btt_write_pg()
1341 || arena->freelist[lane].has_err) { in btt_write_pg()
1352 new_postmap = arena->freelist[lane].block; in btt_write_pg()
1391 log.seq = cpu_to_le32(arena->freelist[lane].seq); in btt_write_pg()
1392 sub = arena->freelist[lane].sub; in btt_write_pg()