Searched refs:bp_pos (Results 1 – 5 of 5) sorted by relevance
/linux/fs/bcachefs/ |
H A D | backpointers.h | 39 static inline struct bpos bp_pos_to_bucket(const struct bch_dev *ca, struct bpos bp_pos) in bp_pos_to_bucket() argument 41 u64 bucket_sector = bp_pos.offset >> MAX_EXTENT_COMPRESS_RATIO_SHIFT; in bp_pos_to_bucket() 43 return POS(bp_pos.inode, sector_to_bucket(ca, bucket_sector)); in bp_pos_to_bucket() 46 static inline bool bp_pos_to_bucket_nodev_noerror(struct bch_fs *c, struct bpos bp_pos, struct bpos… in bp_pos_to_bucket_nodev_noerror() argument 49 struct bch_dev *ca = bch2_dev_rcu(c, bp_pos.inode); in bp_pos_to_bucket_nodev_noerror() 51 *bucket = bp_pos_to_bucket(ca, bp_pos); in bp_pos_to_bucket_nodev_noerror() 56 static inline bool bp_pos_to_bucket_nodev(struct bch_fs *c, struct bpos bp_pos, struct bpos *bucket) in bp_pos_to_bucket_nodev() argument 58 return !bch2_fs_inconsistent_on(!bp_pos_to_bucket_nodev_noerror(c, bp_pos, bucket), in bp_pos_to_bucket_nodev() 59 c, "backpointer for missing device %llu", bp_pos.inode); in bp_pos_to_bucket_nodev()
|
H A D | backpointers.c | 70 !bpos_eq(bp.k->p, bp_pos), in bch2_backpointer_validate() 220 struct bpos *bp_pos, in bch2_get_next_backpointer() argument 229 if (bpos_ge(*bp_pos, bp_end_pos)) in bch2_get_next_backpointer() 244 *bp_pos = bpos_max(*bp_pos, bucket_pos_to_bp(ca, bucket, 0)); in bch2_get_next_backpointer() 247 *bp_pos, iter_flags, k, ret) { in bch2_get_next_backpointer() 251 *bp_pos = k.k->p; in bch2_get_next_backpointer() 256 *bp_pos = SPOS_MAX; in bch2_get_next_backpointer() 264 struct bpos bp_pos, in backpointer_not_found() argument 290 bch2_bpos_to_text(&buf, bp_pos); in backpointer_not_found() 306 struct bpos bp_pos, in bch2_backpointer_get_key() argument [all …]
|
H A D | move.c | 666 struct bpos bp_pos = POS_MIN; in bch2_evacuate_bucket() local 709 &bp_pos, &bp, in bch2_evacuate_bucket() 715 if (bkey_eq(bp_pos, POS_MAX)) in bch2_evacuate_bucket() 719 k = bch2_backpointer_get_key(trans, &iter, bp_pos, bp, 0); in bch2_evacuate_bucket() 772 b = bch2_backpointer_get_node(trans, &iter, bp_pos, bp); in bch2_evacuate_bucket() 801 bp_pos = bpos_nosnap_successor(bp_pos); in bch2_evacuate_bucket()
|
H A D | ec.c | 1278 struct bpos *bp_pos) in ec_stripe_update_extent() argument 1292 bp_pos, &bp, BTREE_ITER_cached); in ec_stripe_update_extent() 1295 if (bpos_eq(*bp_pos, SPOS_MAX)) in ec_stripe_update_extent() 1303 b = bch2_backpointer_get_node(trans, &node_iter, *bp_pos, bp); in ec_stripe_update_extent() 1317 k = bch2_backpointer_get_key(trans, &iter, *bp_pos, bp, BTREE_ITER_intent); in ec_stripe_update_extent() 1376 struct bpos bp_pos = POS_MIN; in ec_stripe_update_bucket() local 1389 ec_stripe_update_extent(trans, ca, bucket_pos, ptr.gen, s, &bp_pos)); in ec_stripe_update_bucket() 1392 if (bkey_eq(bp_pos, POS_MAX)) in ec_stripe_update_bucket() 1395 bp_pos = bpos_nosnap_successor(bp_pos); in ec_stripe_update_bucket()
|
H A D | alloc_foreground.c | 347 struct bpos bp_pos = POS_MIN; in try_alloc_bucket() local 350 &bp_pos, &bp, in try_alloc_bucket() 357 if (!bkey_eq(bp_pos, POS_MAX)) { in try_alloc_bucket()
|