Skip to content

mm/migrate: de-duplicate migrate_reason strings

John Hubbard linux-mm lkml 1 version Applied

Status from this message: [merged] mm-migrate-de-duplicate-migrate_reason-strings.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 2 repliesApplied 1/1

Patches in v1 All 1 applied

#Subject and filesSizeRepliesApplied
1/1mm/migrate: de-duplicate migrate_reason stringsinclude/linux/migrate.h include/linux/migrate_mode.h mm/debug.c+25 -272 repliesApplied

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchWeizhao Ouyang
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/1] mm/migrate: de-duplicate migrate_reason strings

Here is a follow-up that avoids the need for a BUILD_BUG_ON().

Pre-requisite: today's linux.git, plus Weizhao Ouyang's series v2, here:

https://lore.kernel.org/all/[email protected]/

Testing: I've done some cross-compile testing with various .config's, and a short LTP test run. However, I have not yet attempted to verify the actual reason strings during debugging.

I also noticed that migrate_mode is correctly passed around as an enum, but migrate_reason is inaccurately passed around as an int. Not sure if I'll follow up on that, as there is precious little (none, actually?) type safety assistance from the compiler in discerning between an int and an enum, so not much value in fixing it up.

Cc Weizhao Ouyang <[email protected]>
Cc "Huang, Ying" <[email protected]>

John Hubbard (1):
mm/migrate: de-duplicate migrate_reason strings

 include/linux/migrate.h      | 19 +------------------
 include/linux/migrate_mode.h | 13 +++++++++++++
 mm/debug.c                   | 20 +++++++++++---------
 3 files changed, 25 insertions(+), 27 deletions(-)
Signature · 1 line
2.33.0