summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHao Ge <gehao@kylinos.cn>2024-04-22 06:27:25 +0300
committerAndrew Morton <akpm@linux-foundation.org>2024-05-06 03:53:43 +0300
commit2d8b272cdcad17d9b875c206fbcb0422b791ab3a (patch)
tree1438364a7f3483b7b9f604d365579e010ea445f1
parentdce7d10be4bbd31412c4bedd3a8bb2d25b96e025 (diff)
downloadlinux-2d8b272cdcad17d9b875c206fbcb0422b791ab3a.tar.xz
mm/page-flags: make PageUptodate return bool
Make PageUptodate return bool to align the return values of folio_test_uptodate function Link: https://lkml.kernel.org/r/20240422032725.41452-1-gehao@kylinos.cn Signed-off-by: Hao Ge <gehao@kylinos.cn> Cc: David Hildenbrand <david@redhat.com> Cc: Josef Bacik <josef@toxicpanda.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Ruihan Li <lrh2000@pku.edu.cn> Cc: Vishal Moola (Oracle) <vishal.moola@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--include/linux/page-flags.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index f83331684e47..0af2cef02383 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -789,7 +789,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));
}