Home
last modified time | relevance | path

Searched refs:bch_alloc_v4 (Results 1 – 10 of 10) sorted by relevance

/linux-6.15/fs/bcachefs/
H A Dalloc_background.h33 static inline u8 alloc_gc_gen(struct bch_alloc_v4 a) in alloc_gc_gen()
60 struct bch_alloc_v4 ret = {}; in bucket_m_to_alloc()
91 static inline s64 bch2_bucket_sectors_total(struct bch_alloc_v4 a) in bch2_bucket_sectors_total()
101 static inline s64 bch2_bucket_sectors(struct bch_alloc_v4 a) in bch2_bucket_sectors()
109 struct bch_alloc_v4 a) in bch2_bucket_sectors_fragmented()
149 static inline u64 alloc_lru_idx_read(struct bch_alloc_v4 a) in alloc_lru_idx_read()
186 static inline u64 alloc_freespace_genbits(struct bch_alloc_v4 a) in alloc_freespace_genbits()
225 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()
227 const struct bch_alloc_v4 *ret; in bch2_alloc_to_v4()
307 const struct bch_alloc_v4 *,
[all …]
H A Dalloc_background_format.h59 struct bch_alloc_v4 { struct
79 #define BCH_ALLOC_V4_U64s (sizeof(struct bch_alloc_v4) / sizeof(__u64)) argument
81 BITMASK(BCH_ALLOC_V4_NEED_DISCARD, struct bch_alloc_v4, flags, 0, 1)
82 BITMASK(BCH_ALLOC_V4_NEED_INC_GEN, struct bch_alloc_v4, flags, 1, 2)
83 BITMASK(BCH_ALLOC_V4_BACKPOINTERS_START,struct bch_alloc_v4, flags, 2, 8)
84 BITMASK(BCH_ALLOC_V4_NR_BACKPOINTERS, struct bch_alloc_v4, flags, 8, 14)
H A Dalloc_background.c244 struct bch_alloc_v4 a; in bch2_alloc_v4_validate()
340 struct bch_alloc_v4 _a; in bch2_alloc_to_text()
388 *out = (struct bch_alloc_v4) { in __bch2_alloc_to_v4()
554 struct bch_alloc_v4 a; in bch2_bucket_gens_init()
648 struct bch_alloc_v4 a; in bch2_alloc_read()
845 struct bch_alloc_v4 *new_a; in bch2_trigger_alloc()
1151 struct bch_alloc_v4 a_convert; in bch2_check_alloc_key()
1152 const struct bch_alloc_v4 *a; in bch2_check_alloc_key()
1418 struct bch_alloc_v4 a_convert; in bch2_check_discard_freespace_key()
1684 struct bch_alloc_v4 a_convert; in bch2_check_alloc_to_lru_ref()
[all …]
H A Dlru.c138 struct bch_alloc_v4 a_convert; in bkey_lru_type_idx()
139 const struct bch_alloc_v4 *a; in bkey_lru_type_idx()
H A Dbtree_gc.c804 static inline bool bch2_alloc_v4_cmp(struct bch_alloc_v4 l, in bch2_alloc_v4_cmp()
805 struct bch_alloc_v4 r) in bch2_alloc_v4_cmp()
824 struct bch_alloc_v4 old_gc, gc, old_convert, new; in bch2_alloc_write_key()
825 const struct bch_alloc_v4 *old; in bch2_alloc_write_key()
1143 struct bch_alloc_v4 a_convert; in bch2_alloc_write_oldest_gen()
1144 const struct bch_alloc_v4 *a = bch2_alloc_to_v4(k, &a_convert); in bch2_alloc_write_oldest_gen()
H A Dmovinggc.c96 struct bch_alloc_v4 _a; in bch2_bucket_is_movable()
97 const struct bch_alloc_v4 *a = bch2_alloc_to_v4(k, &_a); in bch2_bucket_is_movable()
H A Dbuckets.c566 struct bch_alloc_v4 *a, in __mark_pointer()
637 struct bch_alloc_v4 old = bucket_m_to_alloc(*g), new = old; in bch2_trigger_pointer()
1006 struct bch_alloc_v4 old = bucket_m_to_alloc(*g); in bch2_mark_metadata_bucket()
1024 struct bch_alloc_v4 new = bucket_m_to_alloc(*g); in bch2_mark_metadata_bucket()
H A Dec.c191 struct bch_alloc_v4 *a, in __mark_stripe_bucket()
332 struct bch_alloc_v4 old = bucket_m_to_alloc(*g), new = old; in mark_stripe_bucket()
2092 struct bch_alloc_v4 a_convert; in bch2_invalidate_stripe_to_dev()
2093 const struct bch_alloc_v4 *a = bch2_alloc_to_v4(k_a, &a_convert); in bch2_invalidate_stripe_to_dev()
H A Dbackpointers.c860 struct bch_alloc_v4 a_convert; in check_bucket_backpointer_mismatch()
861 const struct bch_alloc_v4 *a = bch2_alloc_to_v4(alloc_k, &a_convert); in check_bucket_backpointer_mismatch()
H A Dalloc_foreground.c336 struct bch_alloc_v4 a_convert; in bch2_bucket_alloc_early()
337 const struct bch_alloc_v4 *a = bch2_alloc_to_v4(k, &a_convert); in bch2_bucket_alloc_early()