OSDN Git Service

mm/damon/paddr: remove folio_sz field from damon_pa_access_chk_result
authorSeongJae Park <sj@kernel.org>
Mon, 9 Jan 2023 21:33:34 +0000 (21:33 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 19 Jan 2023 01:12:58 +0000 (17:12 -0800)
commit397b0c3a584b4176b4956b519ea3f1402d61fc4e
treeb57ad92a20cec942a8b1b51333b75ce40f3c930a
parentaf40e35a992ff5691166badd52a4fa2f940c2cea
mm/damon/paddr: remove folio_sz field from damon_pa_access_chk_result

DAMON physical address space monitoring operations set gets and saves size
of the folio for a given physical address inside rmap walks, but it can be
directly caluclated outside of the walks.  Remove the 'folio_sz' field
from 'damon_pa_access_chk_result struct' and calculate the size directly
from outside of the walks.

Link: https://lkml.kernel.org/r/20230109213335.62525-6-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/paddr.c