Home
last modified time | relevance | path

Searched refs:bucket_offset (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Dbackpointers.h64 u64 bucket_offset) in bucket_pos_to_bp_noerror() argument
68 MAX_EXTENT_COMPRESS_RATIO_SHIFT) + bucket_offset); in bucket_pos_to_bp_noerror()
76 u64 bucket_offset) in bucket_pos_to_bp() argument
78 struct bpos ret = bucket_pos_to_bp_noerror(ca, bucket, bucket_offset); in bucket_pos_to_bp()
99 bp_k.k.p = bucket_pos_to_bp(ca, bucket, bp.bucket_offset); in bch2_bucket_backpointer_mod()
144 u32 bucket_offset; in __bch2_extent_ptr_to_bp() local
145 *bucket_pos = PTR_BUCKET_POS_OFFSET(ca, &p.ptr, &bucket_offset); in __bch2_extent_ptr_to_bp()
150 .bucket_offset = ((u64) bucket_offset << MAX_EXTENT_COMPRESS_RATIO_SHIFT) + in __bch2_extent_ptr_to_bp()
Dbackpointers.c71 struct bpos bp_pos = bucket_pos_to_bp_noerror(ca, bucket, bp.v->bucket_offset); in bch2_backpointer_validate()
74 bkey_fsck_err_on((bp.v->bucket_offset >> MAX_EXTENT_COMPRESS_RATIO_SHIFT) >= ca->mi.bucket_size || in bch2_backpointer_validate()
87 (u64) (bp->bucket_offset >> MAX_EXTENT_COMPRESS_RATIO_SHIFT), in bch2_backpointer_to_text()
88 (u32) bp->bucket_offset & ~(~0U << MAX_EXTENT_COMPRESS_RATIO_SHIFT), in bch2_backpointer_to_text()
114 bp.v->bucket_offset = swab40(bp.v->bucket_offset); in bch2_backpointer_swab()
187 bp_k->k.p = bucket_pos_to_bp(ca, bucket, bp.bucket_offset); in bch2_bucket_backpointer_mod_nowritebuffer()
554 bucket_pos_to_bp(ca, bucket, bp.bucket_offset), in check_bp_exists()
649 n_bp_k.k.p = bucket_pos_to_bp(ca, bucket, bp.bucket_offset); in check_bp_exists()
Dbtree_node_scan.c224 for (unsigned bucket_offset = 0; in read_btree_nodes_worker() local
225 bucket_offset + btree_sectors(c) <= ca->mi.bucket_size; in read_btree_nodes_worker()
226 bucket_offset += btree_sectors(c)) { in read_btree_nodes_worker()
228 u64 cur_sector = bucket * ca->mi.bucket_size + bucket_offset; in read_btree_nodes_worker()
236 u64 sector = bucket * ca->mi.bucket_size + bucket_offset; in read_btree_nodes_worker()
Djournal_io.h14 u32 bucket_offset; member
Dbuckets.h134 u32 *bucket_offset) in PTR_BUCKET_POS_OFFSET() argument
136 return POS(ptr->dev, sector_to_bucket_and_offset(ca, ptr->offset, bucket_offset)); in PTR_BUCKET_POS_OFFSET()
Dextents.c1195 u32 bucket_offset; in extent_ptr_validate() local
1196 u64 bucket = sector_to_bucket_and_offset(ca, ptr->offset, &bucket_offset); in extent_ptr_validate()
1215 bkey_fsck_err_on(bucket_offset + size_ondisk > bucket_size, in extent_ptr_validate()
1218 bucket_offset, size_ondisk, bucket_size); in extent_ptr_validate()
Djournal_io.c55 i->dev, i->bucket, i->bucket_offset, i->sector); in bch2_journal_ptrs_to_text()
1112 .bucket_offset = offset - in journal_read_bucket()
Dbcachefs_format.h466 __u64 bucket_offset:40; member
Dalloc_background.c339 bp->bucket_offset = swab40(bp->bucket_offset); in bch2_alloc_v4_swab()