Home
last modified time | relevance | path

Searched refs:nbuckets (Results 1 - 25 of 33) sorted by relevance

12

/kernel/linux/linux-5.10/kernel/bpf/
H A Dbpf_local_storage.c555 u32 nbuckets; in bpf_local_storage_map_alloc() local
564 nbuckets = roundup_pow_of_two(num_possible_cpus()); in bpf_local_storage_map_alloc()
566 nbuckets = max_t(u32, 2, nbuckets); in bpf_local_storage_map_alloc()
567 smap->bucket_log = ilog2(nbuckets); in bpf_local_storage_map_alloc()
568 cost = sizeof(*smap->buckets) * nbuckets + sizeof(*smap); in bpf_local_storage_map_alloc()
576 smap->buckets = kvcalloc(sizeof(*smap->buckets), nbuckets, in bpf_local_storage_map_alloc()
584 for (i = 0; i < nbuckets; i++) { in bpf_local_storage_map_alloc()
/kernel/linux/linux-5.10/fs/nfs/
H A Dpnfs_nfs.c105 p->nbuckets = n; in pnfs_alloc_commit_array()
260 unsigned int nbuckets, in pnfs_bucket_scan_array()
266 for (i = 0; i < nbuckets && max != 0; i++) { in pnfs_bucket_scan_array()
289 array->nbuckets, max); in pnfs_generic_scan_commit_lists()
305 unsigned int nbuckets, in pnfs_bucket_recover_commit_reqs()
314 for (i = 0, b = buckets; i < nbuckets; i++, b++) { in pnfs_bucket_recover_commit_reqs()
344 array->nbuckets, in pnfs_generic_recover_commit_reqs()
356 unsigned int nbuckets, struct page *page) in pnfs_bucket_search_commit_reqs()
364 for (i = 0, b = buckets; i < nbuckets; i++, b++) { in pnfs_bucket_search_commit_reqs()
393 array->nbuckets, pag in pnfs_generic_search_commit_reqs()
258 pnfs_bucket_scan_array(struct nfs_commit_info *cinfo, struct pnfs_commit_bucket *buckets, unsigned int nbuckets, int max) pnfs_bucket_scan_array() argument
303 pnfs_bucket_recover_commit_reqs(struct list_head *dst, struct pnfs_commit_bucket *buckets, unsigned int nbuckets, struct nfs_commit_info *cinfo) pnfs_bucket_recover_commit_reqs() argument
355 pnfs_bucket_search_commit_reqs(struct pnfs_commit_bucket *buckets, unsigned int nbuckets, struct page *page) pnfs_bucket_search_commit_reqs() argument
430 pnfs_generic_retry_commit(struct pnfs_commit_bucket *buckets, unsigned int nbuckets, struct nfs_commit_info *cinfo, unsigned int idx) pnfs_generic_retry_commit() argument
451 pnfs_bucket_alloc_ds_commits(struct list_head *list, struct pnfs_commit_bucket *buckets, unsigned int nbuckets, struct nfs_commit_info *cinfo) pnfs_bucket_alloc_ds_commits() argument
[all...]
H A Dinternal.h544 unsigned int nbuckets) in pnfs_bucket_clear_pnfs_ds_commit_verifiers()
548 for (i = 0; i < nbuckets; i++) in pnfs_bucket_clear_pnfs_ds_commit_verifiers()
559 array->nbuckets); in nfs_clear_pnfs_ds_commit_verifiers()
543 pnfs_bucket_clear_pnfs_ds_commit_verifiers(struct pnfs_commit_bucket *buckets, unsigned int nbuckets) pnfs_bucket_clear_pnfs_ds_commit_verifiers() argument
/kernel/linux/linux-6.6/fs/nfs/
H A Dpnfs_nfs.c105 p->nbuckets = n; in pnfs_alloc_commit_array()
260 unsigned int nbuckets, in pnfs_bucket_scan_array()
266 for (i = 0; i < nbuckets && max != 0; i++) { in pnfs_bucket_scan_array()
289 array->nbuckets, max); in pnfs_generic_scan_commit_lists()
305 unsigned int nbuckets, in pnfs_bucket_recover_commit_reqs()
314 for (i = 0, b = buckets; i < nbuckets; i++, b++) { in pnfs_bucket_recover_commit_reqs()
344 array->nbuckets, in pnfs_generic_recover_commit_reqs()
356 unsigned int nbuckets, struct folio *folio) in pnfs_bucket_search_commit_reqs()
364 for (i = 0, b = buckets; i < nbuckets; i++, b++) { in pnfs_bucket_search_commit_reqs()
393 array->nbuckets, foli in pnfs_generic_search_commit_reqs()
258 pnfs_bucket_scan_array(struct nfs_commit_info *cinfo, struct pnfs_commit_bucket *buckets, unsigned int nbuckets, int max) pnfs_bucket_scan_array() argument
303 pnfs_bucket_recover_commit_reqs(struct list_head *dst, struct pnfs_commit_bucket *buckets, unsigned int nbuckets, struct nfs_commit_info *cinfo) pnfs_bucket_recover_commit_reqs() argument
355 pnfs_bucket_search_commit_reqs(struct pnfs_commit_bucket *buckets, unsigned int nbuckets, struct folio *folio) pnfs_bucket_search_commit_reqs() argument
430 pnfs_generic_retry_commit(struct pnfs_commit_bucket *buckets, unsigned int nbuckets, struct nfs_commit_info *cinfo, unsigned int idx) pnfs_generic_retry_commit() argument
451 pnfs_bucket_alloc_ds_commits(struct list_head *list, struct pnfs_commit_bucket *buckets, unsigned int nbuckets, struct nfs_commit_info *cinfo) pnfs_bucket_alloc_ds_commits() argument
[all...]
H A Dinternal.h569 unsigned int nbuckets) in pnfs_bucket_clear_pnfs_ds_commit_verifiers()
573 for (i = 0; i < nbuckets; i++) in pnfs_bucket_clear_pnfs_ds_commit_verifiers()
584 array->nbuckets); in nfs_clear_pnfs_ds_commit_verifiers()
568 pnfs_bucket_clear_pnfs_ds_commit_verifiers(struct pnfs_commit_bucket *buckets, unsigned int nbuckets) pnfs_bucket_clear_pnfs_ds_commit_verifiers() argument
/kernel/linux/linux-5.10/fs/omfs/
H A Ddir.c27 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()
/kernel/linux/linux-6.6/fs/omfs/
H A Ddir.c27 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()
414 int nbuckets; in omfs_readdir() local
425 nbuckets = (dir->i_size - OMFS_DIR_START) / 8; in omfs_readdir()
437 for (; hchain < nbuckets; hchain++) { in omfs_readdir()
/kernel/linux/linux-6.6/kernel/bpf/
H A Dbpf_local_storage.c798 u32 nbuckets; in bpf_local_storage_map_alloc() local
806 nbuckets = roundup_pow_of_two(num_possible_cpus()); in bpf_local_storage_map_alloc()
808 nbuckets = max_t(u32, 2, nbuckets); in bpf_local_storage_map_alloc()
809 smap->bucket_log = ilog2(nbuckets); in bpf_local_storage_map_alloc()
812 nbuckets, GFP_USER | __GFP_NOWARN); in bpf_local_storage_map_alloc()
818 for (i = 0; i < nbuckets; i++) { in bpf_local_storage_map_alloc()
/kernel/linux/linux-5.10/drivers/md/bcache/
H A Dalloc.c90 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()
H A Dsysfs.c68 read_attribute(nbuckets); variable
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()
H A Dsuper.c98 sb->nbuckets = le64_to_cpu(s->nbuckets); in read_super_common()
109 if (sb->nbuckets > LONG_MAX) in read_super_common()
113 if (sb->nbuckets < 1 << 7) in read_super_common()
134 sb->bucket_size * sb->nbuckets) in read_super_common()
153 if (sb->first_bucket + sb->keys > sb->nbuckets) in read_super_common()
652 b < ca->buckets + ca->sb.nbuckets && d < end; in bch_prio_write()
703 b < ca->buckets + ca->sb.nbuckets; in prio_read()
2007 c->nbuckets = ca->sb.nbuckets; in run_cache_set()
[all...]
H A Dbcache.h625 size_t nbuckets; member
787 DIV_ROUND_UP((size_t) (ca)->sb.nbuckets, prios_per_bucket(ca))
891 b < (ca)->buckets + (ca)->sb.nbuckets; b++)
H A Dextents.c59 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()
H A Dbtree.h197 atomic_set(&c->sectors_to_gc, c->cache->sb.bucket_size * c->nbuckets / 16); in set_gc_sectors()
/kernel/linux/linux-6.6/drivers/md/bcache/
H A Dalloc.c90 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()
H A Dsysfs.c68 read_attribute(nbuckets); variable
1043 sysfs_print(nbuckets, ca->sb.nbuckets); in SHOW()
1062 size_t n = ca->sb.nbuckets, i; in SHOW()
1070 ca->sb.nbuckets)); in SHOW()
1122 unused * 100 / (size_t) ca->sb.nbuckets, in SHOW()
1123 available * 100 / (size_t) ca->sb.nbuckets, in SHOW()
1124 dirty * 100 / (size_t) ca->sb.nbuckets, in SHOW()
1125 meta * 100 / (size_t) ca->sb.nbuckets, sum, in SHOW()
H A Dsuper.c98 sb->nbuckets = le64_to_cpu(s->nbuckets); in read_super_common()
109 if (sb->nbuckets > LONG_MAX) in read_super_common()
113 if (sb->nbuckets < 1 << 7) in read_super_common()
134 sb->bucket_size * sb->nbuckets) in read_super_common()
153 if (sb->first_bucket + sb->keys > sb->nbuckets) in read_super_common()
649 b < ca->buckets + ca->sb.nbuckets && d < end; in bch_prio_write()
700 b < ca->buckets + ca->sb.nbuckets; in prio_read()
1981 c->nbuckets = ca->sb.nbuckets; in run_cache_set()
[all...]
H A Dbcache_ondisk.h189 __le64 nbuckets; /* device size */ member
249 __u64 nbuckets; /* device size */ member
H A Dbcache.h631 size_t nbuckets; member
793 DIV_ROUND_UP((size_t) (ca)->sb.nbuckets, prios_per_bucket(ca))
890 b < (ca)->buckets + (ca)->sb.nbuckets; b++)
H A Dextents.c59 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()
/kernel/linux/linux-5.10/lib/
H A Drhashtable.c148 size_t nbuckets, in nested_bucket_table_alloc()
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()
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()
147 nested_bucket_table_alloc(struct rhashtable *ht, size_t nbuckets, gfp_t gfp) nested_bucket_table_alloc() argument
175 bucket_table_alloc(struct rhashtable *ht, size_t nbuckets, gfp_t gfp) bucket_table_alloc() argument
/kernel/linux/linux-6.6/lib/
H A Drhashtable.c148 size_t nbuckets, in nested_bucket_table_alloc()
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()
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()
147 nested_bucket_table_alloc(struct rhashtable *ht, size_t nbuckets, gfp_t gfp) nested_bucket_table_alloc() argument
175 bucket_table_alloc(struct rhashtable *ht, size_t nbuckets, gfp_t gfp) bucket_table_alloc() argument
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Dbcache.h86 __le64 nbuckets; member
122 __u64 nbuckets; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Dbcache.h86 __le64 nbuckets; member
122 __u64 nbuckets; member
/kernel/linux/linux-5.10/include/uapi/linux/
H A Dbcache.h188 __le64 nbuckets; /* device size */ member
248 __u64 nbuckets; /* device size */ member

Completed in 31 milliseconds

12