Home
last modified time | relevance | path

Searched refs:first_bucket (Results 1 – 23 of 23) sorted by relevance

/linux/fs/bcachefs/
H A Djournal_sb.c47 if (b[0] < le16_to_cpu(m.first_bucket)) { in bch2_sb_journal_validate()
49 b[0], le16_to_cpu(m.first_bucket)); in bch2_sb_journal_validate()
141 if (b[0].start < le16_to_cpu(m.first_bucket)) { in bch2_sb_journal_v2_validate()
143 b[0].start, le16_to_cpu(m.first_bucket)); in bch2_sb_journal_v2_validate()
H A Dsb-members.h182 return b - ca->mi.first_bucket < ca->mi.nbuckets_minus_first; in bucket_valid()
325 le16_to_cpu(mi->first_bucket), in bch2_mi_to_cpu()
326 .first_bucket = le16_to_cpu(mi->first_bucket), in bch2_mi_to_cpu()
H A Dbuckets_types.h24 u16 first_bucket; member
H A Dsb-members_format.h46 __le16 first_bucket; /* index of first bucket used */ member
H A Dalloc_foreground.c314 u64 first_bucket = ca->mi.first_bucket; in bch2_bucket_alloc_early() local
316 u64 alloc_start = max(first_bucket, *dev_alloc_cursor); in bch2_bucket_alloc_early()
387 if (!ob && alloc_start > first_bucket) { in bch2_bucket_alloc_early()
388 alloc_cursor = alloc_start = first_bucket; in bch2_bucket_alloc_early()
407 u64 alloc_start = max_t(u64, ca->mi.first_bucket, READ_ONCE(*dev_alloc_cursor)); in bch2_bucket_alloc_freelist()
465 if (!ob && alloc_start > ca->mi.first_bucket) { in bch2_bucket_alloc_freelist()
466 alloc_cursor = alloc_start = ca->mi.first_bucket; in bch2_bucket_alloc_freelist()
H A Dbuckets.h39 for (_b = (_buckets)->b + (_buckets)->first_bucket; \
100 if (b - gens->first_bucket >= gens->nbuckets_minus_first) in bucket_gen()
H A Dalloc_background.c617 for (u64 b = max_t(u64, ca->mi.first_bucket, start); in bch2_alloc_read()
636 if (k.k->p.offset < ca->mi.first_bucket) { in bch2_alloc_read()
637 bch2_btree_iter_set_pos(&iter, POS(k.k->p.inode, ca->mi.first_bucket)); in bch2_alloc_read()
1090 if (bucket->offset < (*ca)->mi.first_bucket) in next_bucket()
1091 bucket->offset = (*ca)->mi.first_bucket; in next_bucket()
1105 *bucket = POS((*ca)->dev_idx, (*ca)->mi.first_bucket); in next_bucket()
1514 if (fsck_err_on(end <= ca->mi.first_bucket || in bch2_check_bucket_gens_key()
1523 for (b = start; b < ca->mi.first_bucket; b++) in bch2_check_bucket_gens_key()
2226 POS(ca->dev_idx, max_t(u64, ca->mi.first_bucket, bucket_start)), in bch2_dev_freespace_init()
2461 ca->mi.first_bucket); in bch2_recalc_capacity()
H A Dsysfs.c155 read_attribute(first_bucket);
759 sysfs_print(first_bucket, ca->mi.first_bucket); in SHOW()
H A Dsb-members.c146 le16_to_cpu(m.first_bucket) < BCH_MIN_NR_NBUCKETS) { in validate_member()
223 prt_printf(out, "First bucket:\t%u\n", le16_to_cpu(m.first_bucket)); in member_to_text()
H A Dbuckets.c1300 bucket_gens->first_bucket = ca->mi.first_bucket; in bch2_dev_buckets_resize()
1303 bucket_gens->nbuckets - bucket_gens->first_bucket; in bch2_dev_buckets_resize()
1311 bucket_gens->nbuckets - bucket_gens->first_bucket; in bch2_dev_buckets_resize()
H A Dextents.c1256 unsigned first_bucket = ca->mi.first_bucket; in extent_ptr_validate() local
1264 bkey_fsck_err_on(bucket < first_bucket, in extent_ptr_validate()
1266 "pointer before first bucket (%llu < %u)", bucket, first_bucket); in extent_ptr_validate()
H A Dchardev.c480 arg.nr_buckets = ca->mi.nbuckets - ca->mi.first_bucket; in bch2_ioctl_dev_usage()
522 arg.nr_buckets = ca->mi.nbuckets - ca->mi.first_bucket; in bch2_ioctl_dev_usage_v2()
H A Dbtree_gc.c896 POS(ca->dev_idx, ca->mi.first_bucket), in bch2_gc_alloc_done()
1165 for (b = gens->first_bucket; in bch2_gc_gens()
H A Dbtree_node_scan.c243 for (u64 bucket = ca->mi.first_bucket; bucket < ca->mi.nbuckets; bucket++) in read_btree_nodes_worker()
H A Ddisk_accounting.c890 u64 v[3] = { ca->mi.nbuckets - ca->mi.first_bucket, 0, 0 }; in bch2_dev_usage_init()
H A Dio_read.c870 ca->mi.first_bucket, ca->mi.nbuckets); in read_from_stale_dirty_pointer()
/linux/drivers/md/bcache/
H A Dalloc.c243 if (ca->fifo_last_bucket < ca->sb.first_bucket || in invalidate_buckets_fifo()
245 ca->fifo_last_bucket = ca->sb.first_bucket; in invalidate_buckets_fifo()
270 n %= (size_t) (ca->sb.nbuckets - ca->sb.first_bucket); in invalidate_buckets_random()
271 n += ca->sb.first_bucket; in invalidate_buckets_random()
H A Dbcache_ondisk.h211 __le16 first_bucket; member
270 __u16 first_bucket; member
H A Dextents.c59 bucket < ca->sb.first_bucket || in __ptr_invalid()
81 if (bucket < ca->sb.first_bucket) in bch_ptr_status()
140 if (n >= b->c->cache->sb.first_bucket && n < b->c->cache->sb.nbuckets) in bch_bkey_dump()
H A Dsuper.c97 sb->first_bucket= le16_to_cpu(s->first_bucket); in read_super_common()
149 if (sb->d[i] != sb->first_bucket + i) in read_super_common()
153 if (sb->first_bucket + sb->keys > sb->nbuckets) in read_super_common()
157 if (sb->first_bucket * sb->bucket_size < 16) in read_super_common()
309 out->first_bucket = cpu_to_le16(sb->first_bucket); in __write_super()
2067 ca->sb.d[j] = ca->sb.first_bucket + j; in run_cache_set()
H A Dbcache.h892 for (b = (ca)->buckets + (ca)->sb.first_bucket; \
H A Dsysfs.c1083 for (i = ca->sb.first_bucket; i < n; i++) in SHOW()
/linux/Documentation/admin-guide/
H A Dbcache.rst229 first_bucket: 1