Lines Matching refs:nfree
242 debugfs_create_u32("nfree", S_IRUGO, d, &a->nfree); in arena_debugfs_init()
486 for (i = 0; i < arena->nfree; i++) { in btt_log_init()
541 arena->freelist = kcalloc(arena->nfree, sizeof(struct free_entry), in btt_freelist_init()
546 for (i = 0; i < arena->nfree; i++) { in btt_freelist_init()
632 for (i = 0; i < arena->nfree; i++) { in log_set_indices()
724 arena->rtt = kcalloc(arena->nfree, sizeof(u32), GFP_KERNEL); in btt_rtt_init()
735 arena->map_locks = kcalloc(arena->nfree, sizeof(struct aligned_lock), in btt_maplocks_init()
740 for (i = 0; i < arena->nfree; i++) in btt_maplocks_init()
768 arena->nfree = BTT_DEFAULT_NFREE; in alloc_arena()
779 logsize = roundup(arena->nfree * LOG_GRP_SIZE, BTT_PG_SIZE); in alloc_arena()
785 arena->external_nlba = arena->internal_nlba - arena->nfree; in alloc_arena()
828 arena->nfree = le32_to_cpu(super->nfree); in parse_arena_meta()
1000 super->nfree = cpu_to_le32(arena->nfree); in btt_arena_write_layout()
1094 u32 idx = (premap * MAP_ENT_SIZE / L1_CACHE_BYTES) % arena->nfree; in lock_map()
1102 u32 idx = (premap * MAP_ENT_SIZE / L1_CACHE_BYTES) % arena->nfree; in unlock_map()
1356 for (i = 0; i < arena->nfree; i++) in btt_write_pg()