]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/page_alloc: simplify free_page_is_bad by removing free_page_is_bad_report
authorYe Liu <liuye@kylinos.cn>
Fri, 28 Mar 2025 01:20:31 +0000 (09:20 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 May 2025 00:48:09 +0000 (17:48 -0700)
commit3a531a9939623e13cf798e9ef5e7edd3e74fe733
tree0a43159012fab20c5d6b64ed6f0be4d5d7a69eaa
parentcf42d4cccf0d01e375175393776a16dc47b9996f
mm/page_alloc: simplify free_page_is_bad by removing free_page_is_bad_report

Refactor free_page_is_bad() to call bad_page() directly, removing the
intermediate free_page_is_bad_report(). This reduces unnecessary
indirection, improving code clarity and maintainability without changing
functionality.

Link: https://lkml.kernel.org/r/20250328012031.1204993-1-ye.liu@linux.dev
Signed-off-by: Ye Liu <liuye@kylinos.cn>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c