[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220728204511.56348-4-ryncsn@gmail.com>
Date: Fri, 29 Jul 2022 04:45:07 +0800
From: Kairui Song <ryncsn@...il.com>
To: linux-mm@...ck.org
Cc: linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
Kairui Song <kasong@...cent.com>
Subject: [RFC PATCH 3/7] mm/headers: change emun order of MM_COUNTERS
From: Kairui Song <kasong@...cent.com>
get_rss reads MM_FILEPAGES, MM_ANONPAGES, MM_SHMEMPAGES. Make them
continues so it's easier to read in a loop in following commits.
Signed-off-by: Kairui Song <kasong@...cent.com>
---
include/linux/mm_types_task.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/mm_types_task.h b/include/linux/mm_types_task.h
index a00327c663db..14182ded3fda 100644
--- a/include/linux/mm_types_task.h
+++ b/include/linux/mm_types_task.h
@@ -43,8 +43,8 @@ struct vmacache {
enum {
MM_FILEPAGES, /* Resident file mapping pages */
MM_ANONPAGES, /* Resident anonymous pages */
- MM_SWAPENTS, /* Anonymous swap entries */
MM_SHMEMPAGES, /* Resident shared memory pages */
+ MM_SWAPENTS, /* Anonymous swap entries */
NR_MM_COUNTERS
};
--
2.35.2
Powered by blists - more mailing lists