Lines Matching refs:ca
19 struct bch_dev *ca = bch2_dev_rcu(c, pos.inode);
20 bool ret = ca && bucket_valid(ca, pos.offset);
93 static inline unsigned bch2_bucket_sectors_fragmented(struct bch_dev *ca,
98 return d ? max(0, ca->mi.bucket_size - d) : 0;
138 struct bch_dev *ca)
141 !bch2_bucket_sectors_fragmented(ca, a))
145 return div_u64(d * (1ULL << 31), ca->mi.bucket_size);
274 static inline u64 should_invalidate_buckets(struct bch_dev *ca,
277 u64 want_free = ca->mi.nbuckets >> 7;
281 - bch2_dev_buckets_reserved(ca, BCH_WATERMARK_stripe));