From: Sang-Heon Jeon <ekffu200098@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>,
Mike Rapoport <rppt@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: [PATCH 0/4] mm/mm_init: simplify zone_spanned_pages_in_node()
Date: Tue, 4 Aug 2026 23:47:57 +0900 [thread overview]
Message-ID: <20260804144803.3290255-1-ekffu200098@gmail.com> (raw)
Hello,
This series simplifies zone_spanned_pages_in_node(), which adjusts
*zone_start_pfn and *zone_end_pfn before and after calling
adjust_zone_range_for_zone_movable(). The helper adjusts the same two
values, which makes the code harder to follow.
Split into four patches for easier review. Squashing them into one
patch when applying is also fine.
Patch 1 folds adjust_zone_range_for_zone_movable() into the caller.
Patch 2 removes the clamping to node_end_pfn, which has no effect.
Patch 3 moves the check and the clamping to node_start_pfn into the
ZONE_MOVABLE branch, which is the only place they have an effect.
Patch 4 extracts a local variable and reduces the indentation level.
No functional change.
Sang-Heon Jeon (4):
mm/mm_init: fold adjust_zone_range_for_zone_movable() into its sole
caller
mm/mm_init: remove redundant clamping in zone_spanned_pages_in_node()
mm/mm_init: move the range check and clamping inside ZONE_MOVABLE
branch
mm/mm_init: clean up zone_spanned_pages_in_node()
mm/mm_init.c | 81 ++++++++++++++++++++++++----------------------------
1 file changed, 37 insertions(+), 44 deletions(-)
--
2.43.0
next reply other threads:[~2026-08-04 14:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 14:47 Sang-Heon Jeon [this message]
2026-08-04 14:47 ` [PATCH 1/4] mm/mm_init: fold adjust_zone_range_for_zone_movable() into its sole caller Sang-Heon Jeon
2026-08-04 14:47 ` [PATCH 2/4] mm/mm_init: remove redundant clamping in zone_spanned_pages_in_node() Sang-Heon Jeon
2026-08-04 14:48 ` [PATCH 3/4] mm/mm_init: move the range check and clamping inside ZONE_MOVABLE branch Sang-Heon Jeon
2026-08-04 14:48 ` [PATCH 4/4] mm/mm_init: clean up zone_spanned_pages_in_node() Sang-Heon Jeon
2026-08-06 14:41 ` [PATCH 0/4] mm/mm_init: simplify zone_spanned_pages_in_node() Sang-Heon Jeon
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=20260804144803.3290255-1-ekffu200098@gmail.com \
--to=ekffu200098@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=rppt@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox