Home
last modified time | relevance | path

Searched refs:bucket_gens (Results 1 – 7 of 7) sorted by relevance

/linux/fs/bcachefs/
H A Dbuckets.c1255 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 Dbuckets.h88 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 Dbuckets_types.h22 struct bucket_gens { struct
H A Dbcachefs_format.h417 x(bucket_gens, 30) \
664 x(bucket_gens, BCH_VERSION(0, 25)) \
1326 x(bucket_gens, 14, 0, \
H A Dbcachefs.h546 struct bucket_gens __rcu *bucket_gens; member
H A Dsb-downgrade.c29 x(bucket_gens, \
H A Dbtree_gc.c1253 struct bucket_gens *gens = bucket_gens(ca); in bch2_gc_gens()