| /linux-6.15/fs/bcachefs/ |
| H A D | journal_sb.c | 47 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 D | sb-members.h | 195 return b - ca->mi.first_bucket < ca->mi.nbuckets_minus_first; in bucket_valid() 343 le16_to_cpu(mi->first_bucket), in bch2_mi_to_cpu() 344 .first_bucket = le16_to_cpu(mi->first_bucket), in bch2_mi_to_cpu()
|
| H A D | sb-members_types.h | 8 u16 first_bucket; /* index of first bucket used */ member
|
| H A D | buckets_types.h | 51 u16 first_bucket; member
|
| H A D | sb-members_format.h | 46 __le16 first_bucket; /* index of first bucket used */ member
|
| H A D | buckets.h | 39 for (_b = (_buckets)->b + (_buckets)->first_bucket; \ 74 if (b - gens->first_bucket >= gens->nbuckets_minus_first) in bucket_gen()
|
| H A D | alloc_foreground.c | 297 u64 first_bucket = ca->mi.first_bucket; in bch2_bucket_alloc_early() local 299 u64 alloc_start = max(first_bucket, *dev_alloc_cursor); in bch2_bucket_alloc_early() 370 if (!ob && alloc_start > first_bucket) { in bch2_bucket_alloc_early() 371 alloc_cursor = alloc_start = first_bucket; in bch2_bucket_alloc_early() 390 u64 alloc_start = max_t(u64, ca->mi.first_bucket, READ_ONCE(*dev_alloc_cursor)); in bch2_bucket_alloc_freelist() 448 if (!ob && alloc_start > ca->mi.first_bucket) { in bch2_bucket_alloc_freelist() 449 alloc_cursor = alloc_start = ca->mi.first_bucket; in bch2_bucket_alloc_freelist()
|
| H A D | sb-members.c | 22 bucket, ca->name, ca->mi.first_bucket, ca->mi.nbuckets); in bch2_dev_bucket_missing() 148 le16_to_cpu(m.first_bucket) < BCH_MIN_NR_NBUCKETS) { in validate_member() 225 prt_printf(out, "First bucket:\t%u\n", le16_to_cpu(m.first_bucket)); in member_to_text()
|
| H A D | alloc_background.c | 619 for (u64 b = max_t(u64, ca->mi.first_bucket, start); in bch2_alloc_read() 638 if (k.k->p.offset < ca->mi.first_bucket) { in bch2_alloc_read() 639 bch2_btree_iter_set_pos(trans, &iter, POS(k.k->p.inode, ca->mi.first_bucket)); in bch2_alloc_read() 1088 if (bucket->offset < (*ca)->mi.first_bucket) in next_bucket() 1089 bucket->offset = (*ca)->mi.first_bucket; in next_bucket() 1103 *bucket = POS((*ca)->dev_idx, (*ca)->mi.first_bucket); in next_bucket() 1512 if (fsck_err_on(end <= ca->mi.first_bucket || in bch2_check_bucket_gens_key() 1521 for (b = start; b < ca->mi.first_bucket; b++) in bch2_check_bucket_gens_key() 2309 POS(ca->dev_idx, max_t(u64, ca->mi.first_bucket, bucket_start)), in bch2_dev_freespace_init() 2544 ca->mi.first_bucket); in bch2_recalc_capacity()
|
| H A D | sysfs.c | 155 read_attribute(first_bucket); 781 sysfs_print(first_bucket, ca->mi.first_bucket); in SHOW()
|
| H A D | chardev.c | 500 arg.nr_buckets = ca->mi.nbuckets - ca->mi.first_bucket; in bch2_ioctl_dev_usage() 542 arg.nr_buckets = ca->mi.nbuckets - ca->mi.first_bucket; in bch2_ioctl_dev_usage_v2()
|
| H A D | extents.c | 1326 unsigned first_bucket = ca->mi.first_bucket; in extent_ptr_validate() local 1334 bkey_fsck_err_on(bucket < first_bucket, in extent_ptr_validate() 1336 "pointer before first bucket (%llu < %u)", bucket, first_bucket); in extent_ptr_validate()
|
| H A D | buckets.c | 1309 bucket_gens->first_bucket = ca->mi.first_bucket; in bch2_dev_buckets_resize() 1312 bucket_gens->nbuckets - bucket_gens->first_bucket; in bch2_dev_buckets_resize()
|
| H A D | btree_gc.c | 924 POS(ca->dev_idx, ca->mi.first_bucket), in bch2_gc_alloc_done() 1193 for (b = gens->first_bucket; in bch2_gc_gens()
|
| H A D | btree_node_scan.c | 250 for (u64 bucket = ca->mi.first_bucket; bucket < ca->mi.nbuckets; bucket++) in read_btree_nodes_worker()
|
| H A D | disk_accounting.c | 910 u64 v[3] = { ca->mi.nbuckets - ca->mi.first_bucket, 0, 0 }; in bch2_dev_usage_init()
|
| H A D | io_read.c | 927 ca->mi.first_bucket, ca->mi.nbuckets); in read_from_stale_dirty_pointer()
|
| /linux-6.15/drivers/md/bcache/ |
| H A D | alloc.c | 243 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 D | bcache_ondisk.h | 211 __le16 first_bucket; member 270 __u16 first_bucket; member
|
| H A D | extents.c | 59 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 D | super.c | 97 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 D | bcache.h | 892 for (b = (ca)->buckets + (ca)->sb.first_bucket; \
|
| H A D | sysfs.c | 1083 for (i = ca->sb.first_bucket; i < n; i++) in SHOW()
|
| /linux-6.15/Documentation/admin-guide/ |
| H A D | bcache.rst | 229 first_bucket: 1
|