Lines Matching refs:dirty_bitset
379 unsigned long *dirty_bitset; member
610 return test_bit(from_cblock(b), cache->dirty_bitset); in is_dirty()
615 if (!test_and_set_bit(from_cblock(cblock), cache->dirty_bitset)) { in set_dirty()
627 if (!test_and_set_bit(from_cblock(cblock), cache->dirty_bitset)) in force_set_dirty()
634 if (test_and_clear_bit(from_cblock(cblock), cache->dirty_bitset)) { in force_clear_dirty()
1922 if (cache->dirty_bitset) in __destroy()
1923 free_bitset(cache->dirty_bitset); in __destroy()
2497 cache->dirty_bitset = alloc_bitset(from_cblock(cache->cache_size)); in cache_create()
2498 if (!cache->dirty_bitset) { in cache_create()
2502 clear_bitset(cache->dirty_bitset, from_cblock(cache->cache_size)); in cache_create()
2696 r = dm_cache_set_dirty_bits(cache->cmd, from_cblock(cache->cache_size), cache->dirty_bitset); in write_dirty_bitset()
2806 set_bit(from_cblock(cblock), cache->dirty_bitset); in load_mapping()
2809 clear_bit(from_cblock(cblock), cache->dirty_bitset); in load_mapping()
2917 new_size = to_cblock(find_next_bit(cache->dirty_bitset, in can_resize()