Message ID | 20240428014711.11169-1-gehao@kylinos.cn (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | mm/pagemap: Make trylock_page return bool | expand |
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 2df35e65557d..d8e2f7e0f66f 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -1014,7 +1014,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)); }
Make trylock_page return bool to align the return values of folio_trylock function and it also corresponds to its comment. Signed-off-by: Hao Ge <gehao@kylinos.cn> --- include/linux/pagemap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)