Lines Matching full:bucket
36 * Convert from pos in backpointer btree to pos of corresponding bucket in alloc
54 …line bool bp_pos_to_bucket_nodev_noerror(struct bch_fs *c, struct bpos bp_pos, struct bpos *bucket) in bp_pos_to_bucket_nodev_noerror() argument
59 *bucket = bp_pos_to_bucket(ca, bp_pos); in bp_pos_to_bucket_nodev_noerror()
65 struct bpos bucket, in bucket_pos_to_bp_noerror()
68 return POS(bucket.inode, in bucket_pos_to_bp_noerror()
69 (bucket_to_sector(ca, bucket.offset) << in bucket_pos_to_bp_noerror()
74 * Convert from pos in alloc btree + bucket offset to pos in backpointer btree:
77 struct bpos bucket, in bucket_pos_to_bp()
80 struct bpos ret = bucket_pos_to_bp_noerror(ca, bucket, bucket_offset); in bucket_pos_to_bp()
81 EBUG_ON(!bkey_eq(bucket, bp_pos_to_bucket(ca, ret))); in bucket_pos_to_bp()
85 static inline struct bpos bucket_pos_to_bp_start(const struct bch_dev *ca, struct bpos bucket) in bucket_pos_to_bp_start() argument
87 return bucket_pos_to_bp(ca, bucket, 0); in bucket_pos_to_bp_start()
90 static inline struct bpos bucket_pos_to_bp_end(const struct bch_dev *ca, struct bpos bucket) in bucket_pos_to_bp_end() argument
92 return bpos_nosnap_predecessor(bucket_pos_to_bp(ca, bpos_nosnap_successor(bucket), 0)); in bucket_pos_to_bp_end()