From 135415b1ff63cdab4057757ddd90698d2932c2d3 Mon Sep 17 00:00:00 2001 From: Vinayak Menon Date: Sun, 10 Mar 2019 17:40:16 +0530 Subject: [PATCH] ANDROID: GKI: mm: add rss counter for unreclaimable pages Add a per mm rss counter to hold the unreclaimable pages. This can include the pages allocated by a task and shared with hardware for DMA etc. Signed-off-by: Vinayak Menon Signed-off-by: Will McVicker (cherry picked from commit ade7f1cd6f26780890cab9ae67f0033f1de432a7) Bug: 148872640 Change-Id: Iec77d69eca0a4f8f6e23f866c80c0143620fcaf2 --- include/linux/mm_types_task.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mm_types_task.h b/include/linux/mm_types_task.h index d7016dcb245e..4a49e8ffebf1 100644 --- a/include/linux/mm_types_task.h +++ b/include/linux/mm_types_task.h @@ -41,6 +41,7 @@ enum { MM_ANONPAGES, /* Resident anonymous pages */ MM_SWAPENTS, /* Anonymous swap entries */ MM_SHMEMPAGES, /* Resident shared memory pages */ + MM_UNRECLAIMABLE, /* Unreclaimable pages, e.g. shared with HW */ NR_MM_COUNTERS };