/Linux-v5.10/kernel/bpf/ |
D | bpf_local_storage.c | 545 u32 nbuckets; in bpf_local_storage_map_alloc() local 554 nbuckets = roundup_pow_of_two(num_possible_cpus()); in bpf_local_storage_map_alloc() 556 nbuckets = max_t(u32, 2, nbuckets); in bpf_local_storage_map_alloc() 557 smap->bucket_log = ilog2(nbuckets); in bpf_local_storage_map_alloc() 558 cost = sizeof(*smap->buckets) * nbuckets + sizeof(*smap); in bpf_local_storage_map_alloc() 566 smap->buckets = kvcalloc(sizeof(*smap->buckets), nbuckets, in bpf_local_storage_map_alloc() 574 for (i = 0; i < nbuckets; i++) { in bpf_local_storage_map_alloc()
|
/Linux-v5.10/fs/nfs/ |
D | pnfs_nfs.c | 109 p->nbuckets = n; in pnfs_alloc_commit_array() 264 unsigned int nbuckets, in pnfs_bucket_scan_array() argument 270 for (i = 0; i < nbuckets && max != 0; i++) { in pnfs_bucket_scan_array() 293 array->nbuckets, max); in pnfs_generic_scan_commit_lists() 309 unsigned int nbuckets, in pnfs_bucket_recover_commit_reqs() argument 318 for (i = 0, b = buckets; i < nbuckets; i++, b++) { in pnfs_bucket_recover_commit_reqs() 348 array->nbuckets, in pnfs_generic_recover_commit_reqs() 360 unsigned int nbuckets, struct page *page) in pnfs_bucket_search_commit_reqs() argument 368 for (i = 0, b = buckets; i < nbuckets; i++, b++) { in pnfs_bucket_search_commit_reqs() 397 array->nbuckets, page); in pnfs_generic_search_commit_reqs() [all …]
|
D | internal.h | 516 unsigned int nbuckets) in pnfs_bucket_clear_pnfs_ds_commit_verifiers() argument 520 for (i = 0; i < nbuckets; i++) in pnfs_bucket_clear_pnfs_ds_commit_verifiers() 531 array->nbuckets); in nfs_clear_pnfs_ds_commit_verifiers()
|
/Linux-v5.10/fs/omfs/ |
D | dir.c | 27 int nbuckets = (dir->i_size - OMFS_DIR_START)/8; in omfs_get_bucket() local 28 int bucket = omfs_hash(name, namelen, nbuckets); in omfs_get_bucket() 218 int nbuckets = (inode->i_size - OMFS_DIR_START) / 8; in omfs_dir_is_empty() local 230 for (i = 0; i < nbuckets; i++, ptr++) in omfs_dir_is_empty() 413 int nbuckets; in omfs_readdir() local 424 nbuckets = (dir->i_size - OMFS_DIR_START) / 8; in omfs_readdir() 436 for (; hchain < nbuckets; hchain++) { in omfs_readdir()
|
/Linux-v5.10/drivers/md/bcache/ |
D | alloc.c | 90 unsigned long next = c->nbuckets * c->cache->sb.bucket_size / 1024; in bch_rescale_priorities() 223 ca->fifo_last_bucket >= ca->sb.nbuckets) in invalidate_buckets_fifo() 231 if (++checked >= ca->sb.nbuckets) { in invalidate_buckets_fifo() 249 n %= (size_t) (ca->sb.nbuckets - ca->sb.first_bucket); in invalidate_buckets_random() 257 if (++checked >= ca->sb.nbuckets / 2) { in invalidate_buckets_random() 474 if (ca->set->avail_nbuckets < ca->set->nbuckets) { in __bch_bucket_free()
|
D | sysfs.c | 68 read_attribute(nbuckets); 1020 sysfs_print(nbuckets, ca->sb.nbuckets); in SHOW() 1039 size_t n = ca->sb.nbuckets, i; in SHOW() 1047 ca->sb.nbuckets)); in SHOW() 1097 unused * 100 / (size_t) ca->sb.nbuckets, in SHOW() 1098 available * 100 / (size_t) ca->sb.nbuckets, in SHOW() 1099 dirty * 100 / (size_t) ca->sb.nbuckets, in SHOW() 1100 meta * 100 / (size_t) ca->sb.nbuckets, sum, in SHOW()
|
D | super.c | 81 sb->nbuckets = le64_to_cpu(s->nbuckets); in read_super_common() 92 if (sb->nbuckets > LONG_MAX) in read_super_common() 96 if (sb->nbuckets < 1 << 7) in read_super_common() 117 sb->bucket_size * sb->nbuckets) in read_super_common() 136 if (sb->first_bucket + sb->keys > sb->nbuckets) in read_super_common() 621 b < ca->buckets + ca->sb.nbuckets && d < end; in bch_prio_write() 672 b < ca->buckets + ca->sb.nbuckets; in prio_read() 1956 c->nbuckets = ca->sb.nbuckets; in run_cache_set() 2044 ca->sb.keys = clamp_t(int, ca->sb.nbuckets >> 7, in run_cache_set() 2222 free = roundup_pow_of_two(ca->sb.nbuckets) >> 10; in cache_alloc() [all …]
|
D | bcache.h | 624 size_t nbuckets; member 786 DIV_ROUND_UP((size_t) (ca)->sb.nbuckets, prios_per_bucket(ca)) 890 b < (ca)->buckets + (ca)->sb.nbuckets; b++)
|
D | extents.c | 59 bucket >= ca->sb.nbuckets) in __ptr_invalid() 82 if (bucket >= ca->sb.nbuckets) in bch_ptr_status() 139 if (n >= b->c->cache->sb.first_bucket && n < b->c->cache->sb.nbuckets) in bch_bkey_dump()
|
D | btree.h | 197 atomic_set(&c->sectors_to_gc, c->cache->sb.bucket_size * c->nbuckets / 16); in set_gc_sectors()
|
D | writeback.c | 38 uint64_t cache_sectors = c->nbuckets * c->cache->sb.bucket_size - in __calc_target_rate()
|
D | btree.c | 1267 stats->in_use = (c->nbuckets - c->avail_nbuckets) * 100 / c->nbuckets; in bch_update_bucket_in_use()
|
/Linux-v5.10/lib/ |
D | rhashtable.c | 148 size_t nbuckets, in nested_bucket_table_alloc() argument 155 if (nbuckets < (1 << (shift + 1))) in nested_bucket_table_alloc() 170 tbl->nest = (ilog2(nbuckets) - 1) % shift + 1; in nested_bucket_table_alloc() 176 size_t nbuckets, in bucket_table_alloc() argument 184 tbl = kvzalloc(struct_size(tbl, buckets, nbuckets), gfp); in bucket_table_alloc() 186 size = nbuckets; in bucket_table_alloc() 189 tbl = nested_bucket_table_alloc(ht, nbuckets, gfp); in bucket_table_alloc() 190 nbuckets = 0; in bucket_table_alloc() 205 for (i = 0; i < nbuckets; i++) in bucket_table_alloc()
|
/Linux-v5.10/include/uapi/linux/ |
D | bcache.h | 188 __le64 nbuckets; /* device size */ member 248 __u64 nbuckets; /* device size */ member
|
/Linux-v5.10/Documentation/ABI/testing/ |
D | sysfs-block-bcache | 124 What: /sys/block/<disk>/bcache/nbuckets
|
/Linux-v5.10/Documentation/admin-guide/ |
D | bcache.rst | 224 nbuckets: 106874 630 Size of the freelist as a percentage of nbuckets. Can be written to to 644 nbuckets
|
/Linux-v5.10/include/linux/ |
D | nfs_xdr.h | 1280 unsigned int nbuckets; member
|