ANDROID: GKI: Don't compact data structures when CONFIG_ZSMALLOC=n

In order to keep abi compatibility for vendor zsmalloc module, ensure
data structures are not compacted even if zsmalloc is disabled.

Bug: 150917000
Change-Id: I8d5d85e50fa34204a48db67f2ae69eed591e8345
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
This commit is contained in:
Kalesh Singh
2020-07-23 14:26:13 +00:00
parent 5937633bf7
commit caed3ce0f7
2 changed files with 0 additions and 4 deletions

View File

@@ -208,9 +208,7 @@ enum zone_stat_item {
#endif
/* Second 128 byte cacheline */
NR_BOUNCE,
#if IS_ENABLED(CONFIG_ZSMALLOC)
NR_ZSPAGES, /* allocated in zsmalloc */
#endif
NR_FREE_CMA_PAGES,
NR_VM_ZONE_STAT_ITEMS };

View File

@@ -1122,9 +1122,7 @@ const char * const vmstat_text[] = {
"nr_shadow_call_stack_bytes",
#endif
"nr_bounce",
#if IS_ENABLED(CONFIG_ZSMALLOC)
"nr_zspages",
#endif
"nr_free_cma",
/* enum numa_stat_item counters */