[PATCH v4 0/2] mm/page_alloc: Some clarifications for migratetype fallback

From: Brendan Jackman
Date: Fri Feb 28 2025 - 04:53:07 EST


A couple of patches to try and make the code easier to follow.

This is based on an old mm-unstable as v3 is already merged there. Base
commit info is attached below.

Signed-off-by: Brendan Jackman <jackmanb@xxxxxxxxxx>
---
Changes in v4:
- Some more precision about "try to claim" vs "claim"
- More improvements to the commentary text.
- Link to v3: https://lore.kernel.org/r/20250225-clarify-steal-v3-0-f2550ead0139@xxxxxxxxxx

Changes in v3:
- Rebased onto mm-unstable to get on top of Johannes' cleanups:
https://lore.kernel.org/linux-mm/20250225001023.1494422-1-hannes@xxxxxxxxxxx/
- Fixed missing renames
- Link to v2: https://lore.kernel.org/r/20250224-clarify-steal-v2-0-be24da656764@xxxxxxxxxx

Changes in v2:
- Tweaked some naming
- Added clarifications of should_claim_block()
- Link to v1: https://lore.kernel.org/r/20250214-clarify-steal-v1-1-79dc5adf1b79@xxxxxxxxxx

---
Brendan Jackman (2):
mm/page_alloc: Clarify terminology in migratetype fallback code
mm/page_alloc: Clarify should_claim_block() commentary

mm/compaction.c | 4 +--
mm/internal.h | 2 +-
mm/page_alloc.c | 100 ++++++++++++++++++++++++++++++--------------------------
3 files changed, 56 insertions(+), 50 deletions(-)
---
base-commit: 801d47bd96ce22acd43809bc09e004679f707c39
change-id: 20250214-clarify-steal-f244880441c1

Best regards,
--
Brendan Jackman <jackmanb@xxxxxxxxxx>