Lines Matching refs:from_dblock
761 BUG_ON(from_dblock(b) >= from_dblock(cache->discard_nr_blocks)); in set_discard()
765 set_bit(from_dblock(b), cache->discard_bitset); in set_discard()
774 clear_bit(from_dblock(b), cache->discard_bitset); in clear_discard()
784 r = test_bit(from_dblock(b), cache->discard_bitset); in is_discarded()
796 r = test_bit(from_dblock(oblock_to_dblock(cache, b)), in is_discarded_oblock()
1876 b = to_dblock(from_dblock(b) + 1); in process_discard_bio()
2593 cache->discard_bitset = alloc_bitset(from_dblock(cache->discard_nr_blocks)); in cache_create()
2598 clear_bitset(cache->discard_bitset, from_dblock(cache->discard_nr_blocks)); in cache_create()
2802 for (i = 0; i < from_dblock(cache->discard_nr_blocks); i++) { in write_discard_bitset()
2950 if (e > from_dblock(li->cache->discard_nr_blocks)) in set_discard_range()
2951 e = from_dblock(li->cache->discard_nr_blocks); in set_discard_range()
2965 if (from_dblock(dblock) == li->discard_end) in load_discard()
2976 li->discard_begin = from_dblock(dblock); in load_discard()
3081 clear_bitset(cache->discard_bitset, from_dblock(cache->discard_nr_blocks)); in cache_preresume()