Lines Matching refs:from_dblock
672 BUG_ON(from_dblock(b) >= from_dblock(cache->discard_nr_blocks)); in set_discard()
676 set_bit(from_dblock(b), cache->discard_bitset); in set_discard()
683 clear_bit(from_dblock(b), cache->discard_bitset); in clear_discard()
691 r = test_bit(from_dblock(b), cache->discard_bitset); in is_discarded()
701 r = test_bit(from_dblock(oblock_to_dblock(cache, b)), in is_discarded_oblock()
1772 b = to_dblock(from_dblock(b) + 1); in process_discard_bio()
2471 cache->discard_bitset = alloc_bitset(from_dblock(cache->discard_nr_blocks)); in cache_create()
2476 clear_bitset(cache->discard_bitset, from_dblock(cache->discard_nr_blocks)); in cache_create()
2680 for (i = 0; i < from_dblock(cache->discard_nr_blocks); i++) { in write_discard_bitset()
2823 if (e > from_dblock(li->cache->discard_nr_blocks)) in set_discard_range()
2824 e = from_dblock(li->cache->discard_nr_blocks); in set_discard_range()
2838 if (from_dblock(dblock) == li->discard_end) in load_discard()
2849 li->discard_begin = from_dblock(dblock); in load_discard()
2954 clear_bitset(cache->discard_bitset, from_dblock(cache->discard_nr_blocks)); in cache_preresume()