Home
last modified time | relevance | path

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

/linux/drivers/md/
H A Ddm-log.c377 size_t bitset_size, buf_size; in create_log_context() local
426 bitset_size = dm_round_up(region_count, BITS_PER_LONG); in create_log_context()
427 bitset_size >>= BYTE_SHIFT; in create_log_context()
429 if (!bitset_size) in create_log_context()
430 bitset_size = 1UL << (BITS_PER_LONG - BYTE_SHIFT); in create_log_context()
432 lc->bitset_uint32_count = bitset_size / sizeof(*lc->clean_bits); in create_log_context()
438 lc->clean_bits = vmalloc(bitset_size); in create_log_context()
456 dm_round_up((LOG_OFFSET << SECTOR_SHIFT) + bitset_size, in create_log_context()
491 memset(lc->clean_bits, -1, bitset_size); in create_log_context()
493 lc->sync_bits = vmalloc(bitset_size); in create_log_context()
[all …]
H A Ddm-era-target.c67 static size_t bitset_size(unsigned int nr_bits) in bitset_size() function
77 ws->bits = vzalloc(bitset_size(nr_blocks)); in writeset_alloc()
94 memset(ws->bits, 0, bitset_size(nr_blocks)); in writeset_init()