[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240428012049.8182-1-gehao@kylinos.cn>
Date: Sun, 28 Apr 2024 09:20:48 +0800
From: Hao Ge <gehao@...inos.cn>
To: akpm@...ux-foundation.org
Cc: linux-mm@...ck.org,
linux-kernel@...r.kernel.org,
gehao618@....com,
Hao Ge <gehao@...inos.cn>
Subject: [PATCH] mm/rmap: change the type of we_locked from int to bool
Change the type of we_locked from int to bool
because folio_trylock return bool
Signed-off-by: Hao Ge <gehao@...inos.cn>
---
mm/rmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/rmap.c b/mm/rmap.c
index 3746a5531018..3da95b911cc0 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -961,7 +961,7 @@ static bool invalid_folio_referenced_vma(struct vm_area_struct *vma, void *arg)
int folio_referenced(struct folio *folio, int is_locked,
struct mem_cgroup *memcg, unsigned long *vm_flags)
{
- int we_locked = 0;
+ bool we_locked = false;
struct folio_referenced_arg pra = {
.mapcount = folio_mapcount(folio),
.memcg = memcg,
--
2.25.1
Powered by blists - more mailing lists