Lines Matching refs:bi_iter
114 bio_sectors(bio), (uint64_t) bio->bi_iter.bi_sector); in bch_data_invalidate()
123 bio->bi_iter.bi_sector += sectors; in bch_data_invalidate()
124 bio->bi_iter.bi_size -= sectors << 9; in bch_data_invalidate()
128 bio->bi_iter.bi_sector, in bch_data_invalidate()
220 SET_KEY_OFFSET(k, bio->bi_iter.bi_sector); in bch_data_insert_start()
397 if (bio->bi_iter.bi_sector & (c->cache->sb.block_size - 1) || in check_should_bypass()
416 hlist_for_each_entry(i, iohash(dc, bio->bi_iter.bi_sector), hash) in check_should_bypass()
417 if (i->last == bio->bi_iter.bi_sector && in check_should_bypass()
426 if (i->sequential + bio->bi_iter.bi_size > i->sequential) in check_should_bypass()
427 i->sequential += bio->bi_iter.bi_size; in check_should_bypass()
520 if (bkey_cmp(k, &KEY(s->iop.inode, bio->bi_iter.bi_sector, 0)) <= 0) in cache_lookup_fn()
524 KEY_START(k) > bio->bi_iter.bi_sector) { in cache_lookup_fn()
528 KEY_START(k) - bio->bi_iter.bi_sector) in cache_lookup_fn()
551 KEY_OFFSET(k) - bio->bi_iter.bi_sector), in cache_lookup_fn()
557 bch_cut_front(&KEY(s->iop.inode, n->bi_iter.bi_sector, 0), bio_key); in cache_lookup_fn()
588 &KEY(s->iop.inode, bio->bi_iter.bi_sector, 0), in cache_lookup()
835 s->iop.bio->bi_iter.bi_sector = in cached_dev_read_done()
836 s->cache_miss->bi_iter.bi_sector; in cached_dev_read_done()
838 s->iop.bio->bi_iter.bi_size = s->insert_bio_sectors << 9; in cached_dev_read_done()
901 bio->bi_iter.bi_sector + s->insert_bio_sectors, in cached_dev_cache_miss()
922 cache_bio->bi_iter.bi_sector = miss->bi_iter.bi_sector; in cached_dev_cache_miss()
924 cache_bio->bi_iter.bi_size = s->insert_bio_sectors << 9; in cached_dev_cache_miss()
973 struct bkey start = KEY(dc->disk.id, bio->bi_iter.bi_sector, 0); in cached_dev_write()
1200 bio->bi_iter.bi_sector += dc->sb.data_offset; in cached_dev_submit_bio()
1206 if (!bio->bi_iter.bi_size) { in cached_dev_submit_bio()
1252 swap(bio->bi_iter.bi_size, bytes); in flash_dev_cache_miss()
1254 swap(bio->bi_iter.bi_size, bytes); in flash_dev_cache_miss()
1258 if (!bio->bi_iter.bi_size) in flash_dev_cache_miss()
1292 if (!bio->bi_iter.bi_size) { in flash_dev_submit_bio()
1302 &KEY(d->id, bio->bi_iter.bi_sector, 0), in flash_dev_submit_bio()