* [PATCH] mm/page-flags: make PageUptodate return bool
@ 2024-04-22 3:27 Hao Ge
0 siblings, 0 replies; only message in thread
From: Hao Ge @ 2024-04-22 3:27 UTC (permalink / raw)
To: akpm, willy
Cc: david, lrh2000, josef, vishal.moola, gehao618, linux-mm,
linux-kernel, Hao Ge
make PageUptodate return bool to align the return
values of folio_test_uptodate function
Signed-off-by: Hao Ge <gehao@kylinos.cn>
---
include/linux/page-flags.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index 652d77805e99..497ec781a681 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -764,7 +764,7 @@ static inline bool folio_test_uptodate(const struct folio *folio)
return ret;
}
-static inline int PageUptodate(const struct page *page)
+static inline bool PageUptodate(const struct page *page)
{
return folio_test_uptodate(page_folio(page));
}
--
2.25.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-22 3:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-22 3:27 [PATCH] mm/page-flags: make PageUptodate return bool Hao Ge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox