From: Sang-Heon Jeon <ekffu200098@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>,
Christoph Lameter <cl@gentwo.org>,
Dennis Zhou <dennis@kernel.org>, Tejun Heo <tj@kernel.org>
Cc: linux-mm@kvack.org
Subject: [PATCH] percpu: fix the comment about which sizes share a slot
Date: Wed, 19 Aug 2026 01:48:30 +0900 [thread overview]
Message-ID: <20260818164831.3138490-1-ekffu200098@gmail.com> (raw)
A percpu allocation is at least PCPU_MIN_ALLOC_SIZE bytes, and
__pcpu_size_to_slot() returns 1 for sizes below 16 bytes and 2 for sizes
from 16 to 31 bytes.
So fix the wrong comment.
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
---
mm/percpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/percpu.c b/mm/percpu.c
index b0676b8054ed..96aa70145095 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -100,7 +100,7 @@
/*
* The slots are sorted by the size of the biggest continuous free area.
- * 1-31 bytes share the same slot.
+ * [PCPU_MIN_ALLOC_SIZE..15] bytes share the same slot.
*/
#define PCPU_SLOT_BASE_SHIFT 5
/* chunks in slots below this are subject to being sidelined on failed alloc */
--
2.43.0
reply other threads:[~2026-08-18 16:49 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=20260818164831.3138490-1-ekffu200098@gmail.com \
--to=ekffu200098@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=cl@gentwo.org \
--cc=dennis@kernel.org \
--cc=linux-mm@kvack.org \
--cc=tj@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.