On Sat, Mar 04, 2023 at 07:39:49PM +0000, SeongJae Park wrote:
damon_pa_mark_accessed_or_deactivate() is accessing a folio via folio_nr_pages() after folio_put() for the folio has invoked. Fix it.
Fixes: f70da5ee8fe1 ("mm/damon: convert damon_pa_mark_accessed_or_deactivate() to use folios") Cc: stable@vger.kernel.org # 6.3.x Signed-off-by: SeongJae Park sj@kernel.org
Reviewed-by: Matthew Wilcox (Oracle) willy@infradead.org