Home
last modified time | relevance | path

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

/linux-6.12.1/fs/bcachefs/
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()
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()
Dsb-members_types.h8 u16 first_bucket; /* index of first bucket used */ member
Dbuckets_types.h24 u16 first_bucket; member
Dalloc_foreground.c295 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()
Dsb-members_format.h46 __le16 first_bucket; /* index of first bucket used */ member
Dbuckets.h39 for (_b = (_buckets)->b + (_buckets)->first_bucket; \
101 if (b - gens->first_bucket >= gens->nbuckets_minus_first) in bucket_gen()
Dalloc_background.c623 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()
Dsysfs.c155 read_attribute(first_bucket);
777 sysfs_print(first_bucket, ca->mi.first_bucket); in SHOW()
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()
Dextents.c1197 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()
Dbuckets.c1275 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()
Dchardev.c604 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()
Dbtree_gc.c899 POS(ca->dev_idx, ca->mi.first_bucket), in bch2_gc_alloc_done()
1264 for (b = gens->first_bucket; in bch2_gc_gens()
Dbtree_node_scan.c223 for (u64 bucket = ca->mi.first_bucket; bucket < ca->mi.nbuckets; bucket++) in read_btree_nodes_worker()
Ddisk_accounting.c857 u64 v[3] = { ca->mi.nbuckets - ca->mi.first_bucket, 0, 0 }; in bch2_dev_usage_init()
Dio_read.c827 ca->mi.first_bucket, ca->mi.nbuckets); in read_from_stale_dirty_pointer()
/linux-6.12.1/drivers/md/bcache/
Dalloc.c250 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()
Dbcache_ondisk.h211 __le16 first_bucket; member
270 __u16 first_bucket; member
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()
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()
Dbcache.h892 for (b = (ca)->buckets + (ca)->sb.first_bucket; \
Dsysfs.c1083 for (i = ca->sb.first_bucket; i < n; i++) in SHOW()
/linux-6.12.1/Documentation/admin-guide/
Dbcache.rst229 first_bucket: 1