From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,tj@kernel.org,dennis@kernel.org,cl@linux.com,ekffu200098@gmail.com,akpm@linux-foundation.org
Subject: [merged mm-stable] percpu-remove-redundant-assignments-to-bits.patch removed from -mm tree
Date: Tue, 06 Oct 2026 17:52:37 -0700 [thread overview]
Message-ID: <20261007005237.907731F0089B@smtp.kernel.org> (raw)
The quilt patch titled
Subject: percpu: remove redundant assignments to bits
has been removed from the -mm tree. Its filename was
percpu-remove-redundant-assignments-to-bits.patch
This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Sang-Heon Jeon <ekffu200098@gmail.com>
Subject: percpu: remove redundant assignments to bits
Date: Wed, 2 Sep 2026 01:53:01 +0900
Patch series "percpu: remove code with no effect".
While reading the percpu initialization path, I found some minor
cleanups for unnecessary initializations and an obsolete return
statement.
No functional change.
This patch (of 4):
pcpu_chunk_refresh_hint() and pcpu_find_block_fit() set bits to 0 and
later call pcpu_next_md_free_region() or pcpu_next_fit_region(), which
unconditionally set *bits to 0. Nothing uses it in between, so the
assignments have no effect.
Remove redundant assignments.
No functional change.
Link: https://lore.kernel.org/20260901165307.1026248-1-ekffu200098@gmail.com
Link: https://lore.kernel.org/20260901165307.1026248-2-ekffu200098@gmail.com
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Dennis Zhou <dennis@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Christoph Lameter <cl@linux.com>
---
mm/percpu.c | 2 --
1 file changed, 2 deletions(-)
--- a/mm/percpu.c~percpu-remove-redundant-assignments-to-bits
+++ a/mm/percpu.c
@@ -758,7 +758,6 @@ static void pcpu_chunk_refresh_hint(stru
chunk_md->contig_hint = 0;
}
- bits = 0;
pcpu_for_each_md_free_region(chunk, bit_off, bits)
pcpu_block_update(chunk_md, bit_off, bit_off + bits);
}
@@ -1122,7 +1121,6 @@ static int pcpu_find_block_fit(struct pc
return -1;
bit_off = pcpu_next_hint(chunk_md, alloc_bits);
- bits = 0;
pcpu_for_each_fit_region(chunk, alloc_bits, align, bit_off, bits) {
if (!pop_only || pcpu_is_populated(chunk, bit_off, bits,
&next_off))
_
Patches currently in -mm which might be from ekffu200098@gmail.com are
mm-swapops-remove-unused-is_hwpoison_entry.patch
bootconfig-remove-redundant-assignment-in-xbc_parse_array.patch
init-mainc-remove-unreachable-check-in-obsolete_checksetup.patch
reply other threads:[~2026-10-07 0:52 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=20261007005237.907731F0089B@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=cl@linux.com \
--cc=dennis@kernel.org \
--cc=ekffu200098@gmail.com \
--cc=mm-commits@vger.kernel.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.