diff options
author | Yang Yang <yang.yang29@zte.com.cn> | 2022-08-08 00:56:45 +0000 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-09-11 20:25:49 -0700 |
commit | e9c2dbc8bf71a5039604a1dc45b10f24a2098f3b (patch) | |
tree | 67ff96241881ed6ab53e88c2fbf40b9f7157dfb8 /include/linux/mmzone.h | |
parent | 4a7e922587d2ea19278a6355dcb52043e47adbac (diff) | |
download | linux-e9c2dbc8bf71a5039604a1dc45b10f24a2098f3b.tar.gz linux-e9c2dbc8bf71a5039604a1dc45b10f24a2098f3b.tar.bz2 linux-e9c2dbc8bf71a5039604a1dc45b10f24a2098f3b.zip |
mm/vmscan: define macros for refaults in struct lruvec
The magic number 0 and 1 are used in several places in vmscan.c.
Define macros for them to improve code readability.
Link: https://lkml.kernel.org/r/20220808005644.1721066-1-yang.yang29@zte.com.cn
Signed-off-by: Yang Yang <yang.yang29@zte.com.cn>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r-- | include/linux/mmzone.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index e24b40c52468..8f571dc7c524 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -306,6 +306,8 @@ static inline bool is_active_lru(enum lru_list lru) return (lru == LRU_ACTIVE_ANON || lru == LRU_ACTIVE_FILE); } +#define WORKINGSET_ANON 0 +#define WORKINGSET_FILE 1 #define ANON_AND_FILE 2 enum lruvec_flags { |