]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mm/page-flags: make PageUptodate return bool
authorHao Ge <gehao@kylinos.cn>
Mon, 22 Apr 2024 03:27:25 +0000 (11:27 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 6 May 2024 00:53:43 +0000 (17:53 -0700)
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>
include/linux/page-flags.h

index f83331684e470dd0fa2b094b3029c6df8f675dc2..0af2cef02383b87f11ae334556e10d9b5e7f76cb 100644 (file)
@@ -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));
 }