[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-mm-commits
Subject:    [folded-merged] mm-page_allocc-rename-check_free_page-to-free_page_is_bad-fix.patch removed from -mm
From:       Andrew Morton <akpm () linux-foundation ! org>
Date:       2022-09-29 4:05:45
Message-ID: 20220929040546.C7EDAC433D7 () smtp ! kernel ! org
[Download RAW message or body]


The quilt patch titled
     Subject: mm-page_allocc-rename-check_free_page-to-free_page_is_bad-fix
has been removed from the -mm tree.  Its filename was
     mm-page_allocc-rename-check_free_page-to-free_page_is_bad-fix.patch

This patch was dropped because it was folded into \
mm-page_allocc-rename-check_free_page-to-free_page_is_bad.patch

------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: mm-page_allocc-rename-check_free_page-to-free_page_is_bad-fix
Date: Tue Sep 13 03:37:49 PM PDT 2022

don't use bool as int

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: ke.wang <ke.wang@unisoc.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Zhaoyang Huang <huangzhaoyang@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/page_alloc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/mm/page_alloc.c~mm-page_allocc-rename-check_free_page-to-free_page_is_bad-fix
+++ a/mm/page_alloc.c
@@ -1441,8 +1441,8 @@ static __always_inline bool free_pages_p
 		page->mapping = NULL;
 	if (memcg_kmem_enabled() && PageMemcgKmem(page))
 		__memcg_kmem_uncharge_page(page, order);
-	if (check_free)
-		bad += free_page_is_bad(page);
+	if (check_free && free_page_is_bad(page))
+		bad++;
 	if (bad)
 		return false;
 
_

Patches currently in -mm which might be from akpm@linux-foundation.org are

mm-page_allocc-rename-check_free_page-to-free_page_is_bad.patch
mm-page_allocc-document-bulkfree_pcp_prepare-return-value.patch
fs-uninline-inode_maybe_inc_iversion.patch
ipc-msg-mitigate-the-lock-contention-with-percpu-counter-checkpatch-fixes.patch
ipc-msg-mitigate-the-lock-contention-with-percpu-counter-fix-fix.patch


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic