Searched refs:bch_alloc_v4 (Results 1 – 10 of 10) sorted by relevance
/linux-6.12.1/fs/bcachefs/ |
D | alloc_background.h | 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() [all …]
|
D | alloc_background_format.h | 59 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)
|
D | alloc_background.c | 244 struct bch_alloc_v4 a; in bch2_alloc_v4_validate() 272 offsetof(struct bch_alloc_v4, stripe_sectors) in bch2_alloc_v4_validate() 324 struct bch_alloc_v4 *a = bkey_s_to_alloc_v4(k).v; in bch2_alloc_v4_swab() 347 struct bch_alloc_v4 _a; in bch2_alloc_to_text() 348 const struct bch_alloc_v4 *a = bch2_alloc_to_v4(k, &_a); in bch2_alloc_to_text() 376 void __bch2_alloc_to_v4(struct bkey_s_c k, struct bch_alloc_v4 *out) in __bch2_alloc_to_v4() 394 *out = (struct bch_alloc_v4) { in __bch2_alloc_to_v4() 560 struct bch_alloc_v4 a; in bch2_bucket_gens_init() 652 struct bch_alloc_v4 a; in bch2_alloc_read() 670 const struct bch_alloc_v4 *a, in bch2_bucket_do_index() [all …]
|
D | lru.c | 127 struct bch_alloc_v4 a_convert; in bch2_check_lru_key() 128 const struct bch_alloc_v4 *a; in bch2_check_lru_key()
|
D | btree_gc.c | 775 static inline bool bch2_alloc_v4_cmp(struct bch_alloc_v4 l, in bch2_alloc_v4_cmp() 776 struct bch_alloc_v4 r) in bch2_alloc_v4_cmp() 795 struct bch_alloc_v4 old_gc, gc, old_convert, new; in bch2_alloc_write_key() 796 const struct bch_alloc_v4 *old; in bch2_alloc_write_key() 1213 struct bch_alloc_v4 a_convert; in bch2_alloc_write_oldest_gen() 1214 const struct bch_alloc_v4 *a = bch2_alloc_to_v4(k, &a_convert); in bch2_alloc_write_oldest_gen()
|
D | movinggc.c | 79 struct bch_alloc_v4 _a; in bch2_bucket_is_movable() 80 const struct bch_alloc_v4 *a; in bch2_bucket_is_movable()
|
D | buckets.c | 546 struct bch_alloc_v4 *a) in __mark_pointer() 612 struct bch_alloc_v4 old = bucket_m_to_alloc(*g), new = old; in bch2_trigger_pointer() 1000 struct bch_alloc_v4 old = bucket_m_to_alloc(*g); in bch2_mark_metadata_bucket() 1018 struct bch_alloc_v4 new = bucket_m_to_alloc(*g); in bch2_mark_metadata_bucket()
|
D | alloc_foreground.c | 212 const struct bch_alloc_v4 *a, in __try_alloc_bucket() 288 struct bch_alloc_v4 a_convert; in try_alloc_bucket() 289 const struct bch_alloc_v4 *a; in try_alloc_bucket() 438 struct bch_alloc_v4 a_convert; in bch2_bucket_alloc_early() 439 const struct bch_alloc_v4 *a = bch2_alloc_to_v4(k, &a_convert); in bch2_bucket_alloc_early()
|
D | move.c | 660 struct bch_alloc_v4 a_convert; in bch2_evacuate_bucket() 661 const struct bch_alloc_v4 *a; in bch2_evacuate_bucket()
|
D | ec.c | 187 struct bch_alloc_v4 *a, in __mark_stripe_bucket() 317 struct bch_alloc_v4 old = bucket_m_to_alloc(*g), new = old; in mark_stripe_bucket() 2245 struct bch_alloc_v4 a_convert; in bch2_invalidate_stripe_to_dev() 2246 const struct bch_alloc_v4 *a = bch2_alloc_to_v4(k_a, &a_convert); in bch2_invalidate_stripe_to_dev()
|