Re: [PATCH 1/2] mm: thp: avoid calling start_stop_khugepaged() in anon_enabled_store()

From: David Hildenbrand (Arm)

Date: Thu Mar 05 2026 - 07:50:24 EST



> This is badly implemented already (sigh) so a little tricky as to how to
> abstract.
>
> Yes the existing logic duplicated, doesn't mean we have to keep doing so :)
>
> To put money where my mouth is attached a (totally untested, in line with
> Kiryl's :P) patch to give a sense of how one might achieve this.
>
> As to this vs. Kiryl's... I mean it might be nice to fix this crap up here to be
> honest.
>
> Maybe David can have deciding vote ;)
I guess there are plenty of cleanups to be had here. And yes, we can
have multiple ones! :)

--
Cheers,

David