* + lib-introduce-hierarchical-per-cpu-counters-fix.patch added to mm-new branch
@ 2026-02-20 4:38 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-02-20 4:38 UTC (permalink / raw)
To: mm-commits, mathieu.desnoyers, akpm, akpm
The patch titled
Subject: lib-introduce-hierarchical-per-cpu-counters-fix
has been added to the -mm mm-new branch. Its filename is
lib-introduce-hierarchical-per-cpu-counters-fix.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/lib-introduce-hierarchical-per-cpu-counters-fix.patch
This patch will later appear in the mm-new branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Note, mm-new is a provisional staging ground for work-in-progress
patches, and acceptance into mm-new is a notification for others take
notice and to finish up reviews. Please do not hesitate to respond to
review feedback and post updated versions to replace or incrementally
fixup patches in mm-new.
The mm-new branch of mm.git is not included in linux-next
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days
------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: lib-introduce-hierarchical-per-cpu-counters-fix
Date: Thu Feb 19 08:12:23 PM PST 2026
export things to modules for lib/tests/percpu_counter_tree_kunit.ko
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/percpu_counter_tree.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
--- a/lib/percpu_counter_tree.c~lib-introduce-hierarchical-per-cpu-counters-fix
+++ a/lib/percpu_counter_tree.c
@@ -297,6 +297,7 @@ int percpu_counter_tree_init(struct perc
{
return percpu_counter_tree_init_many(counter, items, 1, batch_size, gfp_flags);
}
+EXPORT_SYMBOL_GPL(percpu_counter_tree_init);
/**
* percpu_counter_tree_destroy_many() - Destroy many per-CPU counter trees.
@@ -321,6 +322,7 @@ void percpu_counter_tree_destroy(struct
{
return percpu_counter_tree_destroy_many(counter, 1);
}
+EXPORT_SYMBOL_GPL(percpu_counter_tree_destroy);
static
long percpu_counter_tree_carry(long orig, long res, long inc, unsigned long bit_mask)
@@ -423,7 +425,7 @@ void percpu_counter_tree_add(struct perc
return;
percpu_counter_tree_add_slowpath(counter, inc);
}
-
+EXPORT_SYMBOL_GPL(percpu_counter_tree_add);
static
long percpu_counter_tree_precise_sum_unbiased(struct percpu_counter_tree *counter)
@@ -450,6 +452,7 @@ long percpu_counter_tree_precise_sum(str
{
return percpu_counter_tree_precise_sum_unbiased(counter) + READ_ONCE(counter->bias);
}
+EXPORT_SYMBOL_GPL(percpu_counter_tree_precise_sum);
static
int compare_delta(long delta, unsigned long accuracy_neg, unsigned long accuracy_pos)
@@ -491,6 +494,7 @@ int percpu_counter_tree_approximate_comp
a->approx_accuracy_range.over + b->approx_accuracy_range.under,
a->approx_accuracy_range.under + b->approx_accuracy_range.over);
}
+EXPORT_SYMBOL_GPL(percpu_counter_tree_approximate_compare);
/**
* percpu_counter_tree_approximate_compare_value - Approximated comparison of a counter tree against a given value.
@@ -514,6 +518,7 @@ int percpu_counter_tree_approximate_comp
counter->approx_accuracy_range.under,
counter->approx_accuracy_range.over);
}
+EXPORT_SYMBOL_GPL(percpu_counter_tree_approximate_compare_value);
/**
* percpu_counter_tree_precise_compare - Precise comparison of two counter trees.
@@ -582,6 +587,7 @@ int percpu_counter_tree_precise_compare(
return 1;
return 0;
}
+EXPORT_SYMBOL_GPL(percpu_counter_tree_precise_compare);
/**
* percpu_counter_tree_precise_compare_value - Precise comparison of a counter tree against a given value.
@@ -619,6 +625,7 @@ int percpu_counter_tree_precise_compare_
return 1;
return 0;
}
+EXPORT_SYMBOL_GPL(percpu_counter_tree_precise_compare_value);
static
void percpu_counter_tree_set_bias(struct percpu_counter_tree *counter, long bias)
@@ -657,6 +664,7 @@ size_t percpu_counter_tree_items_size(vo
return 0;
return counter_config->nr_items * sizeof(struct percpu_counter_tree_level_item);
}
+EXPORT_SYMBOL_GPL(percpu_counter_tree_items_size);
static void __init calculate_accuracy_topology(void)
{
_
Patches currently in -mm which might be from akpm@linux-foundation.org are
maple_tree-start-using-maple-copy-node-for-destination-checkpatch-fixes.patch
maple_tree-add-cp_is_new_root-helper-fix-fix.patch
lib-introduce-hierarchical-per-cpu-counters-fix.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-02-20 4:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-20 4:38 + lib-introduce-hierarchical-per-cpu-counters-fix.patch added to mm-new branch Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.