Re: [PATCH 02/10] mm: convert core mm to mm_flags_*() accessors

Lorenzo Stoakes
2025-09-17T05:17:27Z

Hi Andrew,

Please apply the below fixpatch to account for an accidentally inverted check.

Thanks, Lorenzo

----8<----
From e5a04f488d2f5bc7e94003ffa586e01fa76b39c1 Mon Sep 17 00:00:00 2001
From: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Date: Wed, 17 Sep 2025 06:15:31 +0100
Subject: [PATCH] fix missing !

Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
---
mm/oom_kill.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/oom_kill.c b/mm/oom_kill.c
index 17650f0b516e..a2c96e625618 100644
--- a/mm/oom_kill.c
+++ b/mm/oom_kill.c
@@ -1251,7 +1251,7 @@ SYSCALL_DEFINE2(process_mrelease, int, pidfd, unsigned int, flags)
* Check MMF_OOM_SKIP again under mmap_read_lock protection to ensure
* possible change in exit_mmap is seen
*/
- if (mm_flags_test(MMF_OOM_SKIP, mm) && !__oom_reap_task_mm(mm))
+ if (!mm_flags_test(MMF_OOM_SKIP, mm) && !__oom_reap_task_mm(mm))
ret = -EAGAIN;
mmap_read_unlock(mm);

--
2.51.0