Lines Matching refs:from_dblock
766 BUG_ON(from_dblock(b) >= from_dblock(cache->discard_nr_blocks)); in set_discard()
770 set_bit(from_dblock(b), cache->discard_bitset); in set_discard()
779 clear_bit(from_dblock(b), cache->discard_bitset); in clear_discard()
789 r = test_bit(from_dblock(b), cache->discard_bitset); in is_discarded()
801 r = test_bit(from_dblock(oblock_to_dblock(cache, b)), in is_discarded_oblock()
1899 b = to_dblock(from_dblock(b) + 1); in process_discard_bio()
2609 cache->discard_bitset = alloc_bitset(from_dblock(cache->discard_nr_blocks)); in cache_create()
2614 clear_bitset(cache->discard_bitset, from_dblock(cache->discard_nr_blocks)); in cache_create()
2818 for (i = 0; i < from_dblock(cache->discard_nr_blocks); i++) { in write_discard_bitset()
2966 if (e > from_dblock(li->cache->discard_nr_blocks)) in set_discard_range()
2967 e = from_dblock(li->cache->discard_nr_blocks); in set_discard_range()
2981 if (from_dblock(dblock) == li->discard_end) in load_discard()
2992 li->discard_begin = from_dblock(dblock); in load_discard()
3097 clear_bitset(cache->discard_bitset, from_dblock(cache->discard_nr_blocks)); in cache_preresume()