Searched refs:bitset_size (Results 1 – 2 of 2) sorted by relevance
372 size_t bitset_size, buf_size; in create_log_context() local418 bitset_size = dm_round_up(region_count, BITS_PER_LONG); in create_log_context()419 bitset_size >>= BYTE_SHIFT; in create_log_context()421 lc->bitset_uint32_count = bitset_size / sizeof(*lc->clean_bits); in create_log_context()427 lc->clean_bits = vmalloc(bitset_size); in create_log_context()445 dm_round_up((LOG_OFFSET << SECTOR_SHIFT) + bitset_size, in create_log_context()481 memset(lc->clean_bits, -1, bitset_size); in create_log_context()483 lc->sync_bits = vmalloc(bitset_size); in create_log_context()494 memset(lc->sync_bits, (sync == NOSYNC) ? -1 : 0, bitset_size); in create_log_context()497 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()