Skip to content

Commit 2d8b272

Browse files
GeHao01994akpm00
authored andcommitted
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/[email protected] Signed-off-by: Hao Ge <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Josef Bacik <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Cc: Ruihan Li <[email protected]> Cc: Vishal Moola (Oracle) <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent dce7d10 commit 2d8b272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/page-flags.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ static inline bool folio_test_uptodate(const struct folio *folio)
789789
return ret;
790790
}
791791

792-
static inline int PageUptodate(const struct page *page)
792+
static inline bool PageUptodate(const struct page *page)
793793
{
794794
return folio_test_uptodate(page_folio(page));
795795
}

0 commit comments

Comments
 (0)