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

Gregory Price <[email protected]> Wed, 29 Jul 2026 11:14:53 -0400
Newsgroups dev.linux.lists.damon,org.kernel.vger.linux-kernel,org.kvack.linux-mm
Message-ID <amoXZr2vB_q5q5Wu@gourry-fedora-PF4VCD3F>
On Wed, Jul 29, 2026 at 07:22:28AM -0700, SJ Park wrote:
> On Tue, 28 Jul 2026 22:01:01 -0400 Gregory Price <[email protected]> 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