Searched refs:bitset_size (Results 1 – 2 of 2) sorted by relevance
370 size_t bitset_size, buf_size; in create_log_context() local416 bitset_size = dm_round_up(region_count, BITS_PER_LONG); in create_log_context()417 bitset_size >>= BYTE_SHIFT; in create_log_context()419 lc->bitset_uint32_count = bitset_size / sizeof(*lc->clean_bits); in create_log_context()425 lc->clean_bits = vmalloc(bitset_size); in create_log_context()443 dm_round_up((LOG_OFFSET << SECTOR_SHIFT) + bitset_size, in create_log_context()479 memset(lc->clean_bits, -1, bitset_size); in create_log_context()481 lc->sync_bits = vmalloc(bitset_size); in create_log_context()492 memset(lc->sync_bits, (sync == NOSYNC) ? -1 : 0, bitset_size); in create_log_context()495 lc->recovering_bits = vzalloc(bitset_size); in create_log_context()
65 static size_t bitset_size(unsigned nr_bits) in bitset_size() function75 ws->bits = vzalloc(bitset_size(nr_blocks)); in writeset_alloc()92 memset(ws->bits, 0, bitset_size(nr_blocks)); in writeset_init()