Searched refs:bucket_gens (Results 1 – 7 of 7) sorted by relevance
/linux/fs/bcachefs/ |
H A D | buckets.c | 1255 struct bucket_gens *buckets = in bucket_gens_free_rcu() 1263 struct bucket_gens *bucket_gens = NULL, *old_bucket_gens = NULL; in bch2_dev_buckets_resize() local 1264 bool resize = ca->bucket_gens != NULL; in bch2_dev_buckets_resize() 1269 if (!(bucket_gens = kvmalloc(sizeof(struct bucket_gens) + nbuckets, in bch2_dev_buckets_resize() 1276 bucket_gens->nbuckets = nbuckets; in bch2_dev_buckets_resize() 1277 bucket_gens->nbuckets_minus_first = in bch2_dev_buckets_resize() 1278 bucket_gens->nbuckets - bucket_gens->first_bucket; in bch2_dev_buckets_resize() 1290 memcpy(bucket_gens->b, in bch2_dev_buckets_resize() 1295 rcu_assign_pointer(ca->bucket_gens, bucket_gens); in bch2_dev_buckets_resize() 1296 bucket_gens = old_bucket_gens; in bch2_dev_buckets_resize() [all …]
|
H A D | buckets.h | 88 static inline struct bucket_gens *bucket_gens(struct bch_dev *ca) in bucket_gens() function 90 return rcu_dereference_check(ca->bucket_gens, in bucket_gens() 99 struct bucket_gens *gens = bucket_gens(ca); in bucket_gen()
|
H A D | buckets_types.h | 22 struct bucket_gens { struct
|
H A D | bcachefs_format.h | 417 x(bucket_gens, 30) \ 664 x(bucket_gens, BCH_VERSION(0, 25)) \ 1326 x(bucket_gens, 14, 0, \
|
H A D | bcachefs.h | 546 struct bucket_gens __rcu *bucket_gens; member
|
H A D | sb-downgrade.c | 29 x(bucket_gens, \
|
H A D | btree_gc.c | 1253 struct bucket_gens *gens = bucket_gens(ca); in bch2_gc_gens()
|