Lines Matching refs:nbuckets
1399 ca->mi.bucket_size * ca->mi.nbuckets) { in __bch2_dev_attach_bdev()
1873 ret = bch2_dev_freespace_init(c, ca, 0, ca->mi.nbuckets); in bch2_dev_online()
1922 int bch2_dev_resize(struct bch_fs *c, struct bch_dev *ca, u64 nbuckets) in bch2_dev_resize() argument
1929 old_nbuckets = ca->mi.nbuckets; in bch2_dev_resize()
1931 if (nbuckets < ca->mi.nbuckets) { in bch2_dev_resize()
1937 if (nbuckets > BCH_MEMBER_NBUCKETS_MAX) { in bch2_dev_resize()
1939 nbuckets, BCH_MEMBER_NBUCKETS_MAX); in bch2_dev_resize()
1946 ca->mi.bucket_size * nbuckets) { in bch2_dev_resize()
1952 ret = bch2_dev_buckets_resize(c, ca, nbuckets); in bch2_dev_resize()
1963 m->nbuckets = cpu_to_le64(nbuckets); in bch2_dev_resize()
1974 u64 v[3] = { nbuckets - old_nbuckets, 0, 0 }; in bch2_dev_resize()
1978 bch2_dev_freespace_init(c, ca, old_nbuckets, nbuckets); in bch2_dev_resize()