mm/pagemap: make trylock_page return bool
authorHao Ge <gehao@kylinos.cn>
Sun, 28 Apr 2024 01:47:11 +0000 (09:47 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 6 May 2024 00:53:56 +0000 (17:53 -0700)
commit620875560bd65084a8bfcea6899003d6a29ddc57
tree07f30ff1189e945c73177c9305e9f94ee0c2e42a
parent7491f3f34891ef8baf5418f6856af91b58f7d200
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>
include/linux/pagemap.h