Re: [PATCH/RFC] mm/debug_pagealloc: enable it by default

From: Dave Jones
Date: Mon Jan 25 2016 - 14:38:37 EST

On Mon, Jan 25, 2016 at 02:22:10PM -0500, Dave Jones wrote:

> > A default mode would be ok for me as it makes things obvious. Will send
> > a patch.
> The messaging around changing a default like this was really poor.
> When we do behaviour changes like this, we typically rename the CONFIG option
> to make it obvious that things aren't as they used to be.

Looking at this closer, shouldn't the original diff to make this runtime
have also changed the x86 implementation details in arch/x86/mm/pageattr.c ?
Even when we don't boot with the enable flag, we're doing the "split 2M page into 4Ks"
thing. It looks like a s/debug_pagealloc/debug_pagealloc_enabled()/ might
do the right thing maybe ?

It's almost comedic that I walked into change c9e0d39126af thinking all this
stuff was working _because_ we were doing that page splitting.