Home
last modified time | relevance | path

Searched refs:SBLK_SZ (Results 1 – 2 of 2) sorted by relevance

/third_party/iowow/src/kv/
Diwkv_internal.h70 #define SBLK_SZ (2U * (1U << IWKV_FSM_BPOW)) macro
77 #define SBLK_PAGE_SZ_V2 (SBLK_PAGE_SBLK_NUM_V2 * SBLK_SZ)
417 static_assert(SBLK_SZ >= SOFF_END, "SBLK_SZ >= SOFF_END");
Diwkv.c504 off_t npage = sba - (bpos - 1) * SBLK_SZ; in _db_dispose_chain()
519 rc = fsm->deallocate(fsm, sba, SBLK_SZ); in _db_dispose_chain()
1344 off_t addr = sblk->addr - (sblk->bpos - 1) * SBLK_SZ; in _sblk_is_only_one_on_page_v2()
1349 memcpy(&bv, mm + addr + i * SBLK_SZ + SOFF_BPOS_U1_V2, 1); in _sblk_is_only_one_on_page_v2()
1401 rc = fsm->deallocate(fsm, sblk->addr, SBLK_SZ); in _sblk_destroy()
1439 rc = fsm->allocate(fsm, SBLK_SZ + (1ULL << kvbpow), &baddr, &blen, IWKV_FSM_ALLOC_FLAGS); in _sblk_create_v1()
1441 assert(blen - SBLK_SZ == (1ULL << kvbpow)); in _sblk_create_v1()
1442 _kvblk_create(lx, baddr + SBLK_SZ, kvbpow, &kvblk); in _sblk_create_v1()
1476 off_t paddr = sblk->addr - (sblk->bpos - 1) * SBLK_SZ; in _sblk_find_free_page_slot_v2()
1479 memcpy(&slot, mm + paddr + (i - 1) * SBLK_SZ + SOFF_BPOS_U1_V2, 1); in _sblk_find_free_page_slot_v2()
[all …]