Home
last modified time | relevance | path

Searched refs:entries_per_block (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/drivers/md/persistent-data/
Ddm-space-map-common.c224 ll->entries_per_block = (ll->block_size - sizeof(struct disk_bitmap_header)) * in sm_ll_init()
241 old_blocks = dm_sector_div_up(ll->nr_blocks, ll->entries_per_block); in sm_ll_extend()
242 blocks = dm_sector_div_up(nr_blocks, ll->entries_per_block); in sm_ll_extend()
244 nr_indexes = dm_sector_div_up(nr_blocks, ll->entries_per_block); in sm_ll_extend()
266 idx.nr_free = cpu_to_le32(ll->entries_per_block); in sm_ll_extend()
284 b = do_div(index, ll->entries_per_block); in sm_ll_lookup_bitmap()
335 dm_block_t index_end = dm_sector_div_up(end, ll->entries_per_block); in sm_ll_find_free_block()
340 begin = do_div(index_begin, ll->entries_per_block); in sm_ll_find_free_block()
341 end = do_div(end, ll->entries_per_block); in sm_ll_find_free_block()
360 bit_end = (i == index_end - 1) ? end : ll->entries_per_block; in sm_ll_find_free_block()
[all …]
Ddm-space-map-common.h63 uint32_t entries_per_block; member
/Linux-v5.10/fs/nilfs2/
Ddat.c427 unsigned long entries_per_block = NILFS_MDT(dat)->mi_entries_per_block; in nilfs_dat_get_vinfo() local
438 do_div(first, entries_per_block); in nilfs_dat_get_vinfo()
439 first *= entries_per_block; in nilfs_dat_get_vinfo()
440 last = first + entries_per_block - 1; in nilfs_dat_get_vinfo()