mm/page_alloc: Replace flag check with PageHWPoison() in check_new_page_bad()
Subsystems (2)
PATCH 1/1 mm/page_alloc: Replace flag check with PageHWPoison() in check_new_page_bad()
From: Ye Liu <[email protected]>
This patch replaces the direct check for the __PG_HWPOISON flag with the PageHWPoison() macro, improving code readability and maintaining consistency with other parts of the memory management code.
--- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page_alloc.c +1 -1
@@ -1427,7 +1427,7 @@ static __always_inline void page_del_and_expand(struct zone *zone,static void check_new_page_bad (struct page *page) { -if (unlikely (page->flags & __PG_HWPOISON)) { +if (unlikely (PageHWPoison (page))) {/* Don't complain about hwpoisoned pages */ if (PageBuddy (page))__ClearPageBuddy (page);
Signature · 1 line
2.25.1
Quoted 16 lines · Ye Liu
From: Ye Liu <[email protected]>
This patch replaces the direct check for the
__PG_HWPOISONflag with thePageHWPoison()macro, improving code readability and maintaining consistency with other parts of the memory management code.Signed-off-by Ye Liu <[email protected]>--- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/page_alloc.c +0
-0
mm/page_alloc.c static __always_inline void page_del_and_expand(struct zone *zone, · line 1433
Quoted 8 lines
mm/page_alloc.c +1
-1@@ -1427,7 +1427,7 @@ static __always_inline void page_del_and_expand(struct zone *zone,static void check_new_page_bad (struct page *page) { -if (unlikely (page->flags & __PG_HWPOISON)) { +if (unlikely (PageHWPoison (page))) {/* Don't complain about hwpoisoned pages */ if (PageBuddy (page))__ClearPageBuddy (page);
Quoted 16 lines · Ye Liu
From: Ye Liu <[email protected]>
This patch replaces the direct check for the
__PG_HWPOISONflag with thePageHWPoison()macro, improving code readability and maintaining consistency with other parts of the memory management code.Signed-off-by Ye Liu <[email protected]>--- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/page_alloc.c +0
-0
mm/page_alloc.c static __always_inline void page_del_and_expand(struct zone *zone, · line 1433
Quoted 8 lines
mm/page_alloc.c +1
-1@@ -1427,7 +1427,7 @@ static __always_inline void page_del_and_expand(struct zone *zone,static void check_new_page_bad (struct page *page) { -if (unlikely (page->flags & __PG_HWPOISON)) { +if (unlikely (PageHWPoison (page))) {/* Don't complain about hwpoisoned pages */ if (PageBuddy (page))__ClearPageBuddy (page);