Lines Matching refs:from_dblock
742 BUG_ON(from_dblock(b) >= from_dblock(cache->discard_nr_blocks)); in set_discard()
746 set_bit(from_dblock(b), cache->discard_bitset); in set_discard()
753 clear_bit(from_dblock(b), cache->discard_bitset); in clear_discard()
761 r = test_bit(from_dblock(b), cache->discard_bitset); in is_discarded()
771 r = test_bit(from_dblock(oblock_to_dblock(cache, b)), in is_discarded_oblock()
1850 b = to_dblock(from_dblock(b) + 1); in process_discard_bio()
2549 cache->discard_bitset = alloc_bitset(from_dblock(cache->discard_nr_blocks)); in cache_create()
2554 clear_bitset(cache->discard_bitset, from_dblock(cache->discard_nr_blocks)); in cache_create()
2758 for (i = 0; i < from_dblock(cache->discard_nr_blocks); i++) { in write_discard_bitset()
2906 if (e > from_dblock(li->cache->discard_nr_blocks)) in set_discard_range()
2907 e = from_dblock(li->cache->discard_nr_blocks); in set_discard_range()
2921 if (from_dblock(dblock) == li->discard_end) in load_discard()
2932 li->discard_begin = from_dblock(dblock); in load_discard()
3037 clear_bitset(cache->discard_bitset, from_dblock(cache->discard_nr_blocks)); in cache_preresume()