Home
last modified time | relevance | path

Searched refs:bkey_start_offset (Results 1 – 15 of 15) sorted by relevance

/linux/fs/bcachefs/
H A Dextent_update.c69 bkey_start_offset(p.k); in count_iters_for_insert()
135 offset = bkey_start_offset(&insert->k) - in bch2_extent_atomic_end()
136 bkey_start_offset(k.k); in bch2_extent_atomic_end()
H A Dreflink.c118 le64_to_cpu(v->idx) - bkey_start_offset(&k->k)); in trans_trigger_reflink_p_segment()
397 r_p->v.idx = cpu_to_le64(bkey_start_offset(&r_v->k)); in bch2_make_extent_indirect()
538 bkey_start_offset(src_k.k)); in bch2_remap_range()
H A Dextents.c904 (s64) p.ptr.offset + p.crc.offset - bkey_start_offset(k.k) == in bch2_bkey_matches_ptr()
939 (s64) p1.ptr.offset + p1.crc.offset - bkey_start_offset(k1.k) == in bch2_extents_match()
940 (s64) p2.ptr.offset + p2.crc.offset - bkey_start_offset(k2.k) && in bch2_extents_match()
974 (s64) p1.ptr.offset + p1.crc.offset - bkey_start_offset(k1.k) == in bch2_extent_has_ptr()
975 (s64) p2.ptr.offset + p2.crc.offset - bkey_start_offset(k2.k)) in bch2_extent_has_ptr()
1564 sub = where.offset - bkey_start_offset(k.k); in bch2_cut_front_s()
1646 len = where.offset - bkey_start_offset(k.k); in bch2_cut_back_s()
H A Dtests.c192 BUG_ON(bkey_start_offset(k.k) != i); in test_iterate_extents()
208 i = bkey_start_offset(k.k); in test_iterate_extents()
308 BUG_ON(bkey_start_offset(k.k) != i + 8); in test_iterate_slots_extents()
330 BUG_ON(bkey_start_offset(k.k) != i); in test_iterate_slots_extents()
H A Dfs-io.c816 max(start, bkey_start_offset(k.k)); in quota_reserve_range()
930 next_data = max(offset, bkey_start_offset(k.k) << 9); in bch2_seek_data()
971 max(offset, bkey_start_offset(k.k) << 9), in bch2_seek_hole()
977 offset = max(offset, bkey_start_offset(k.k) << 9); in bch2_seek_hole()
H A Dbkey.h303 static inline u64 bkey_start_offset(const struct bkey *k) in bkey_start_offset() function
312 .offset = bkey_start_offset(k), in bkey_start_pos()
H A Dio_read.c525 if (bkey_start_offset(k.k) < data_offset || in __bch2_rbio_narrow_crcs()
531 bkey_start_offset(k.k) - data_offset, k.k->size, in __bch2_rbio_narrow_crcs()
784 *offset_into_extent = iter.pos.offset - bkey_start_offset(k.k); in __bch2_read_indirect_extent()
1188 bkey_start_offset(k.k); in __bch2_read()
H A Dfs-io-pagecache.c213 unsigned folio_offset = max(bkey_start_offset(k.k), folio_start) - in bch2_folio_set()
219 BUG_ON(bkey_start_offset(k.k) > folio_end); in bch2_folio_set()
H A Dfs.c1213 bkey_start_offset(k.k) << 9, in bch2_fill_extent()
1223 bkey_start_offset(k.k) << 9, in bch2_fill_extent()
1229 bkey_start_offset(k.k) << 9, in bch2_fill_extent()
1296 bkey_start_offset(k.k); in bch2_fiemap()
1312 bkey_start_offset(k.k) + in bch2_fiemap()
H A Dio_write.c170 max(bkey_start_offset(&new->k), in bch2_sum_sector_overwrites()
171 bkey_start_offset(old.k)); in bch2_sum_sector_overwrites()
434 n->inode_offset = bkey_start_offset(&k->k); in bch2_submit_wbio_replicas()
H A Dio_misc.c462 op->v.pos = cpu_to_le64(insert ? bkey_start_offset(&delete.k) : delete.k.p.offset); in __bch2_resume_logged_op_finsert()
H A Dfs-io-buffered.c188 bkey_start_offset(k.k); in bchfs_read()
H A Dmove.c310 io->rbio.bio.bi_iter.bi_sector = bkey_start_offset(k.k); in bch2_move_extent()
H A Dfsck.c1832 extent_end->offset = bkey_start_offset(&pos2); in overlapping_extents_found()
1872 if (i->offset <= bkey_start_offset(k.k)) in check_overlapping_extents()
H A Dalloc_foreground.c500 for (alloc_cursor = max(alloc_cursor, bkey_start_offset(k.k)); in bch2_bucket_alloc_freelist()