Re: [PATCH 1/4] mm/damon: defensively skip zone device folios in damon_get_folio()

From: Gregory Price

Date: Wed Jul 29 2026 - 11:34:03 EST


On Wed, Jul 29, 2026 at 07:22:28AM -0700, SJ Park wrote:
> On Tue, 28 Jul 2026 22:01:01 -0400 Gregory Price <gourry@xxxxxxxxxx> wrote:
>
> So, what do you think about adding the check under CONFIG_DAMON_DEBUG_SANITY
> with good comments at the moment, and later converting to folio_allows_mm_ops()
> together?
>

I think probably we can drop the commit since it'll be a little odd to
add ifdef's and then take them out later (the latter check will be
functional, not just a sanity check).

~Gregory