From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,mathieu.desnoyers@efficios.com,akpm@linux-foundation.org,akpm@linux-foundation.org
Subject: + lib-introduce-hierarchical-per-cpu-counters-fix.patch added to mm-new branch
Date: Thu, 19 Feb 2026 20:38:35 -0800 [thread overview]
Message-ID: <20260220043836.683FFC116D0@smtp.kernel.org> (raw)
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
reply other threads:[~2026-02-20 4:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260220043836.683FFC116D0@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mm-commits@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.