Lines Matching refs:bch_alloc_v4

35 static inline u8 alloc_gc_gen(struct bch_alloc_v4 a)  in alloc_gc_gen()
40 static inline void alloc_to_bucket(struct bucket *dst, struct bch_alloc_v4 src) in alloc_to_bucket()
50 static inline void __bucket_m_to_alloc(struct bch_alloc_v4 *dst, struct bucket src) in __bucket_m_to_alloc()
60 static inline struct bch_alloc_v4 bucket_m_to_alloc(struct bucket b) in bucket_m_to_alloc()
62 struct bch_alloc_v4 ret = {}; in bucket_m_to_alloc()
93 static inline s64 bch2_bucket_sectors_total(struct bch_alloc_v4 a) in bch2_bucket_sectors_total()
98 static inline s64 bch2_bucket_sectors_dirty(struct bch_alloc_v4 a) in bch2_bucket_sectors_dirty()
103 static inline s64 bch2_bucket_sectors(struct bch_alloc_v4 a) in bch2_bucket_sectors()
111 struct bch_alloc_v4 a) in bch2_bucket_sectors_fragmented()
125 static inline s64 bch2_bucket_sectors_unstriped(struct bch_alloc_v4 a) in bch2_bucket_sectors_unstriped()
130 static inline enum bch_data_type alloc_data_type(struct bch_alloc_v4 a, in alloc_data_type()
146 static inline void alloc_data_type_set(struct bch_alloc_v4 *a, enum bch_data_type data_type) in alloc_data_type_set()
151 static inline u64 alloc_lru_idx_read(struct bch_alloc_v4 a) in alloc_lru_idx_read()
168 static inline u64 alloc_lru_idx_fragmentation(struct bch_alloc_v4 a, in alloc_lru_idx_fragmentation()
188 static inline u64 alloc_freespace_genbits(struct bch_alloc_v4 a) in alloc_freespace_genbits()
193 static inline struct bpos alloc_freespace_pos(struct bpos pos, struct bch_alloc_v4 a) in alloc_freespace_pos()
199 static inline unsigned alloc_v4_u64s_noerror(const struct bch_alloc_v4 *a) in alloc_v4_u64s_noerror()
207 static inline unsigned alloc_v4_u64s(const struct bch_alloc_v4 *a) in alloc_v4_u64s()
225 void __bch2_alloc_to_v4(struct bkey_s_c, struct bch_alloc_v4 *);
227 static inline const struct bch_alloc_v4 *bch2_alloc_to_v4(struct bkey_s_c k, struct bch_alloc_v4 *c… in bch2_alloc_to_v4()
229 const struct bch_alloc_v4 *ret; in bch2_alloc_to_v4()
305 const struct bch_alloc_v4 *,
306 const struct bch_alloc_v4 *, unsigned);
330 static inline struct bch_backpointer *alloc_v4_backpointers(struct bch_alloc_v4 *a) in alloc_v4_backpointers()
337 static inline const struct bch_backpointer *alloc_v4_backpointers_c(const struct bch_alloc_v4 *a) in alloc_v4_backpointers_c()