ANDROID: mm: Make page_owner_enabled global

Make page_owner_enabled variable global so that it
can be used by the minidump module to reserve memory
for page owner.

Bug: 177374907
Change-Id: Ib6189466c810321d109fa7d32773728215887e84
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
This commit is contained in:
Vijayanand Jitta
2021-03-22 18:22:20 +05:30
committed by Suren Baghdasaryan
parent 29d0546bd9
commit 29d1a0e310
2 changed files with 2 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
#include <linux/jump_label.h>
#ifdef CONFIG_PAGE_OWNER
extern bool page_owner_enabled;
extern struct static_key_false page_owner_inited;
extern struct page_ext_operations page_owner_ops;

View File

@@ -31,7 +31,7 @@ struct page_owner {
pid_t pid;
};
static bool page_owner_enabled = false;
bool page_owner_enabled;
DEFINE_STATIC_KEY_FALSE(page_owner_inited);
static depot_stack_handle_t dummy_handle;