Lines Matching refs:from_dblock
675 BUG_ON(from_dblock(b) >= from_dblock(cache->discard_nr_blocks)); in set_discard()
679 set_bit(from_dblock(b), cache->discard_bitset); in set_discard()
686 clear_bit(from_dblock(b), cache->discard_bitset); in clear_discard()
695 r = test_bit(from_dblock(b), cache->discard_bitset); in is_discarded()
706 r = test_bit(from_dblock(oblock_to_dblock(cache, b)), in is_discarded_oblock()
1795 b = to_dblock(from_dblock(b) + 1); in process_discard_bio()
2506 cache->discard_bitset = alloc_bitset(from_dblock(cache->discard_nr_blocks)); in cache_create()
2511 clear_bitset(cache->discard_bitset, from_dblock(cache->discard_nr_blocks)); in cache_create()
2715 for (i = 0; i < from_dblock(cache->discard_nr_blocks); i++) { in write_discard_bitset()
2858 if (e > from_dblock(li->cache->discard_nr_blocks)) in set_discard_range()
2859 e = from_dblock(li->cache->discard_nr_blocks); in set_discard_range()
2873 if (from_dblock(dblock) == li->discard_end) in load_discard()
2884 li->discard_begin = from_dblock(dblock); in load_discard()
2984 clear_bitset(cache->discard_bitset, from_dblock(cache->discard_nr_blocks)); in cache_preresume()