Searched refs:SBLK_SZ (Results 1 – 2 of 2) sorted by relevance
/third_party/iowow/src/kv/ |
D | iwkv_internal.h | 72 #define SBLK_SZ (2U * (1U << IWKV_FSM_BPOW)) macro 79 #define SBLK_PAGE_SZ_V2 (SBLK_PAGE_SBLK_NUM_V2 * SBLK_SZ) 371 static_assert(SBLK_SZ >= SOFF_END, "SBLK_SZ >= SOFF_END");
|
D | iwkv.c | 499 off_t npage = sba - (bpos - 1) * SBLK_SZ; in _db_dispose_chain() 514 rc = fsm->deallocate(fsm, sba, SBLK_SZ); in _db_dispose_chain() 1342 off_t addr = sblk->addr - (sblk->bpos - 1) * SBLK_SZ; in _sblk_is_only_one_on_page_v2() 1347 memcpy(&bv, mm + addr + i * SBLK_SZ + SOFF_BPOS_U1_V2, 1); in _sblk_is_only_one_on_page_v2() 1398 rc = fsm->deallocate(fsm, sblk->addr, SBLK_SZ); in _sblk_destroy() 1436 rc = fsm->allocate(fsm, SBLK_SZ + (1ULL << kvbpow), &baddr, &blen, IWKV_FSM_ALLOC_FLAGS); in _sblk_create_v1() 1438 assert(blen - SBLK_SZ == (1ULL << kvbpow)); in _sblk_create_v1() 1439 _kvblk_create(lx, baddr + SBLK_SZ, kvbpow, &kvblk); in _sblk_create_v1() 1473 off_t paddr = sblk->addr - (sblk->bpos - 1) * SBLK_SZ; in _sblk_find_free_page_slot_v2() 1476 memcpy(&slot, mm + paddr + (i - 1) * SBLK_SZ + SOFF_BPOS_U1_V2, 1); in _sblk_find_free_page_slot_v2() [all …]
|