mm/pagemap: make trylock_page return bool

Make trylock_page return bool to align the return values of folio_trylock
function and it also corresponds to its comment.

Link: https://lkml.kernel.org/r/20240428014711.11169-1-gehao@kylinos.cn
Signed-off-by: Hao Ge <gehao@kylinos.cn>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
Hao Ge 2024-04-28 09:47:11 +08:00 committed by Andrew Morton
parent 7491f3f348
commit 620875560b
1 changed files with 1 additions and 1 deletions

View File

@ -1012,7 +1012,7 @@ static inline bool folio_trylock(struct folio *folio)
/*
* Return true if the page was successfully locked
*/
static inline int trylock_page(struct page *page)
static inline bool trylock_page(struct page *page)
{
return folio_trylock(page_folio(page));
}