From bf6ceddd568af81b38dcd77c502db20601c89c90 Mon Sep 17 00:00:00 2001 From: Trilok Soni Date: Wed, 20 Apr 2016 18:12:51 -0700 Subject: mm/page_owner: ask users about default setting of PAGE_OWNER Since this commit 48c96a3685795 ("mm/page_owner: keep track of page owners") doesn't enable the page_owner by default even though CONFIG_PAGE_OWNER is enabled. Add configuration option CONFIG_PAGE_OWNER_ENABLE_DEFAULT to allow user to enable it by default through the defconfig file. CRs-Fixed: 1006743 Change-Id: I9b565a34e2068bf575974eaf3dc9f7820bdd7a96 Signed-off-by: Trilok Soni --- mm/page_owner.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mm') diff --git a/mm/page_owner.c b/mm/page_owner.c index 983c3a10fa07..45cccaa1ce32 100644 --- a/mm/page_owner.c +++ b/mm/page_owner.c @@ -7,7 +7,8 @@ #include #include "internal.h" -static bool page_owner_disabled = true; +static bool page_owner_disabled = + !IS_ENABLED(CONFIG_PAGE_OWNER_ENABLE_DEFAULT); bool page_owner_inited __read_mostly; static void init_early_allocated_pages(void); @@ -20,6 +21,9 @@ static int early_page_owner_param(char *buf) if (strcmp(buf, "on") == 0) page_owner_disabled = false; + if (strcmp(buf, "off") == 0) + page_owner_disabled = true; + return 0; } early_param("page_owner", early_page_owner_param); -- cgit v1.2.3