/linux-6.12.1/fs/bcachefs/ |
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()
|
D | sb-members.h | 182 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()
|
D | sb-members_types.h | 8 u16 first_bucket; /* index of first bucket used */ member
|
D | buckets_types.h | 24 u16 first_bucket; member
|
D | alloc_foreground.c | 295 if (b < ca->mi.first_bucket || b >= ca->mi.nbuckets) { in try_alloc_bucket() 298 ca->mi.first_bucket, ca->mi.nbuckets); in try_alloc_bucket() 395 u64 first_bucket = max_t(u64, ca->mi.first_bucket, ca->new_fs_bucket_idx); in bch2_bucket_alloc_early() local 397 u64 alloc_start = max(first_bucket, *dev_alloc_cursor); in bch2_bucket_alloc_early() 469 if (!ob && alloc_start > first_bucket) { in bch2_bucket_alloc_early() 470 alloc_cursor = alloc_start = first_bucket; in bch2_bucket_alloc_early() 489 u64 alloc_start = max_t(u64, ca->mi.first_bucket, READ_ONCE(*dev_alloc_cursor)); in bch2_bucket_alloc_freelist() 542 if (!ob && alloc_start > ca->mi.first_bucket) { in bch2_bucket_alloc_freelist() 543 alloc_cursor = alloc_start = ca->mi.first_bucket; in bch2_bucket_alloc_freelist()
|
D | sb-members_format.h | 46 __le16 first_bucket; /* index of first bucket used */ member
|
D | buckets.h | 39 for (_b = (_buckets)->b + (_buckets)->first_bucket; \ 101 if (b - gens->first_bucket >= gens->nbuckets_minus_first) in bucket_gen()
|
D | alloc_background.c | 623 for (u64 b = max_t(u64, ca->mi.first_bucket, start); in bch2_alloc_read() 642 if (k.k->p.offset < ca->mi.first_bucket) { in bch2_alloc_read() 643 bch2_btree_iter_set_pos(&iter, POS(k.k->p.inode, ca->mi.first_bucket)); in bch2_alloc_read() 1068 if (bucket->offset < (*ca)->mi.first_bucket) in next_bucket() 1069 bucket->offset = (*ca)->mi.first_bucket; in next_bucket() 1083 *bucket = POS((*ca)->dev_idx, (*ca)->mi.first_bucket); in next_bucket() 1461 if (fsck_err_on(end <= ca->mi.first_bucket || in bch2_check_bucket_gens_key() 1470 for (b = start; b < ca->mi.first_bucket; b++) in bch2_check_bucket_gens_key() 2201 POS(ca->dev_idx, max_t(u64, ca->mi.first_bucket, bucket_start)), in bch2_dev_freespace_init() 2436 ca->mi.first_bucket); in bch2_recalc_capacity()
|
D | sysfs.c | 155 read_attribute(first_bucket); 777 sysfs_print(first_bucket, ca->mi.first_bucket); in SHOW()
|
D | sb-members.c | 146 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()
|
D | extents.c | 1197 unsigned first_bucket = ca->mi.first_bucket; in extent_ptr_validate() local 1212 bkey_fsck_err_on(bucket < first_bucket, in extent_ptr_validate() 1214 "pointer before first bucket (%llu < %u)", bucket, first_bucket); in extent_ptr_validate()
|
D | buckets.c | 1275 bucket_gens->first_bucket = ca->mi.first_bucket; in bch2_dev_buckets_resize() 1278 bucket_gens->nbuckets - bucket_gens->first_bucket; in bch2_dev_buckets_resize()
|
D | chardev.c | 604 arg.nr_buckets = ca->mi.nbuckets - ca->mi.first_bucket; in bch2_ioctl_dev_usage() 646 arg.nr_buckets = ca->mi.nbuckets - ca->mi.first_bucket; in bch2_ioctl_dev_usage_v2()
|
D | btree_gc.c | 899 POS(ca->dev_idx, ca->mi.first_bucket), in bch2_gc_alloc_done() 1264 for (b = gens->first_bucket; in bch2_gc_gens()
|
D | btree_node_scan.c | 223 for (u64 bucket = ca->mi.first_bucket; bucket < ca->mi.nbuckets; bucket++) in read_btree_nodes_worker()
|
D | disk_accounting.c | 857 u64 v[3] = { ca->mi.nbuckets - ca->mi.first_bucket, 0, 0 }; in bch2_dev_usage_init()
|
D | io_read.c | 827 ca->mi.first_bucket, ca->mi.nbuckets); in read_from_stale_dirty_pointer()
|
/linux-6.12.1/drivers/md/bcache/ |
D | alloc.c | 250 if (ca->fifo_last_bucket < ca->sb.first_bucket || in invalidate_buckets_fifo() 252 ca->fifo_last_bucket = ca->sb.first_bucket; in invalidate_buckets_fifo() 277 n %= (size_t) (ca->sb.nbuckets - ca->sb.first_bucket); in invalidate_buckets_random() 278 n += ca->sb.first_bucket; in invalidate_buckets_random()
|
D | bcache_ondisk.h | 211 __le16 first_bucket; member 270 __u16 first_bucket; member
|
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()
|
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()
|
D | bcache.h | 892 for (b = (ca)->buckets + (ca)->sb.first_bucket; \
|
D | sysfs.c | 1083 for (i = ca->sb.first_bucket; i < n; i++) in SHOW()
|
/linux-6.12.1/Documentation/admin-guide/ |
D | bcache.rst | 229 first_bucket: 1
|