]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon: minor cleanup for damon_pa_young
authorMiaohe Lin <linmiaohe@huawei.com>
Wed, 16 Mar 2022 08:15:28 +0000 (16:15 +0800)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 17:01:36 +0000 (13:01 -0400)
commit537769d743a60c3e31a46fde43cfdcbb7722279f
tree324aa89f1e42f796d24f6ad992c332ad3c53b352
parent50db58f9348c6aa0cbb2284b4de78653e06497b2
mm/damon: minor cleanup for damon_pa_young

if need_lock is true but folio_trylock fails, we should return false
instead of NULL to match the return value type exactly. No functional
change intended.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
mm/damon/paddr.c