Lines Matching refs:nfree
241 debugfs_create_u32("nfree", S_IRUGO, d, &a->nfree); in arena_debugfs_init()
485 for (i = 0; i < arena->nfree; i++) { in btt_log_init()
540 arena->freelist = kcalloc(arena->nfree, sizeof(struct free_entry), in btt_freelist_init()
545 for (i = 0; i < arena->nfree; i++) { in btt_freelist_init()
631 for (i = 0; i < arena->nfree; i++) { in log_set_indices()
723 arena->rtt = kcalloc(arena->nfree, sizeof(u32), GFP_KERNEL); in btt_rtt_init()
734 arena->map_locks = kcalloc(arena->nfree, sizeof(struct aligned_lock), in btt_maplocks_init()
739 for (i = 0; i < arena->nfree; i++) in btt_maplocks_init()
767 arena->nfree = BTT_DEFAULT_NFREE; in alloc_arena()
778 logsize = roundup(arena->nfree * LOG_GRP_SIZE, BTT_PG_SIZE); in alloc_arena()
784 arena->external_nlba = arena->internal_nlba - arena->nfree; in alloc_arena()
827 arena->nfree = le32_to_cpu(super->nfree); in parse_arena_meta()
999 super->nfree = cpu_to_le32(arena->nfree); in btt_arena_write_layout()
1093 u32 idx = (premap * MAP_ENT_SIZE / L1_CACHE_BYTES) % arena->nfree; in lock_map()
1101 u32 idx = (premap * MAP_ENT_SIZE / L1_CACHE_BYTES) % arena->nfree; in unlock_map()
1353 for (i = 0; i < arena->nfree; i++) in btt_write_pg()