Searched refs:new_buckets (Results 1 – 4 of 4) sorted by relevance
/linux/tools/lib/bpf/ |
H A D | hashmap.c | 103 struct hashmap_entry **new_buckets; in hashmap_grow() local 113 new_buckets = calloc(new_cap, sizeof(new_buckets[0])); in hashmap_grow() 114 if (!new_buckets) in hashmap_grow() 119 hashmap_add_entry(&new_buckets[h], cur); in hashmap_grow() 125 map->buckets = new_buckets; in hashmap_grow()
|
/linux/tools/perf/util/ |
H A D | hashmap.c | 103 struct hashmap_entry **new_buckets; in hashmap_grow() local 113 new_buckets = calloc(new_cap, sizeof(new_buckets[0])); in hashmap_grow() 114 if (!new_buckets) in hashmap_grow() 119 hashmap_add_entry(&new_buckets[h], cur); in hashmap_grow() 125 map->buckets = new_buckets; in hashmap_grow()
|
/linux/net/sched/ |
H A D | sch_hhf.c | 147 struct list_head new_buckets; /* list of new buckets */ member 398 list_add_tail(&bucket->bucketchain, &q->new_buckets); in hhf_enqueue() 426 head = &q->new_buckets; in hhf_dequeue() 451 if ((head == &q->new_buckets) && !list_empty(&q->old_buckets)) in hhf_dequeue() 587 INIT_LIST_HEAD(&q->new_buckets); in hhf_init()
|
/linux/fs/bcachefs/ |
H A D | journal.c | 1029 u64 *new_bucket_seq = NULL, *new_buckets = NULL; in bch2_set_nr_journal_buckets_iter() local 1039 new_buckets = kcalloc(nr, sizeof(u64), GFP_KERNEL); in bch2_set_nr_journal_buckets_iter() 1041 if (!bu || !ob || !new_buckets || !new_bucket_seq) { in bch2_set_nr_journal_buckets_iter() 1084 memcpy(new_buckets, ja->buckets, ja->nr * sizeof(u64)); in bch2_set_nr_journal_buckets_iter() 1091 memmove(new_buckets + pos + nr_got, in bch2_set_nr_journal_buckets_iter() 1092 new_buckets + pos, in bch2_set_nr_journal_buckets_iter() 1093 sizeof(new_buckets[0]) * (ja->nr - pos)); in bch2_set_nr_journal_buckets_iter() 1099 new_buckets[pos + i] = bu[i]; in bch2_set_nr_journal_buckets_iter() 1105 ret = bch2_journal_buckets_to_sb(c, ca, new_buckets, nr); in bch2_set_nr_journal_buckets_iter() 1115 swap(new_buckets, ja->buckets); in bch2_set_nr_journal_buckets_iter() [all …]
|