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:
parent
7491f3f348
commit
620875560b
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user