diff options
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r-- | include/linux/mmzone.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index db976b9f8791..889598537370 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -83,13 +83,8 @@ enum zone_stat_item { | |||
83 | NR_ACTIVE_ANON, /* " " " " " */ | 83 | NR_ACTIVE_ANON, /* " " " " " */ |
84 | NR_INACTIVE_FILE, /* " " " " " */ | 84 | NR_INACTIVE_FILE, /* " " " " " */ |
85 | NR_ACTIVE_FILE, /* " " " " " */ | 85 | NR_ACTIVE_FILE, /* " " " " " */ |
86 | #ifdef CONFIG_UNEVICTABLE_LRU | ||
87 | NR_UNEVICTABLE, /* " " " " " */ | 86 | NR_UNEVICTABLE, /* " " " " " */ |
88 | NR_MLOCK, /* mlock()ed pages found and moved off LRU */ | 87 | NR_MLOCK, /* mlock()ed pages found and moved off LRU */ |
89 | #else | ||
90 | NR_UNEVICTABLE = NR_ACTIVE_FILE, /* avoid compiler errors in dead code */ | ||
91 | NR_MLOCK = NR_ACTIVE_FILE, | ||
92 | #endif | ||
93 | NR_ANON_PAGES, /* Mapped anonymous pages */ | 88 | NR_ANON_PAGES, /* Mapped anonymous pages */ |
94 | NR_FILE_MAPPED, /* pagecache pages mapped into pagetables. | 89 | NR_FILE_MAPPED, /* pagecache pages mapped into pagetables. |
95 | only modified from process context */ | 90 | only modified from process context */ |
@@ -132,11 +127,7 @@ enum lru_list { | |||
132 | LRU_ACTIVE_ANON = LRU_BASE + LRU_ACTIVE, | 127 | LRU_ACTIVE_ANON = LRU_BASE + LRU_ACTIVE, |
133 | LRU_INACTIVE_FILE = LRU_BASE + LRU_FILE, | 128 | LRU_INACTIVE_FILE = LRU_BASE + LRU_FILE, |
134 | LRU_ACTIVE_FILE = LRU_BASE + LRU_FILE + LRU_ACTIVE, | 129 | LRU_ACTIVE_FILE = LRU_BASE + LRU_FILE + LRU_ACTIVE, |
135 | #ifdef CONFIG_UNEVICTABLE_LRU | ||
136 | LRU_UNEVICTABLE, | 130 | LRU_UNEVICTABLE, |
137 | #else | ||
138 | LRU_UNEVICTABLE = LRU_ACTIVE_FILE, /* avoid compiler errors in dead code */ | ||
139 | #endif | ||
140 | NR_LRU_LISTS | 131 | NR_LRU_LISTS |
141 | }; | 132 | }; |
142 | 133 | ||
@@ -156,11 +147,7 @@ static inline int is_active_lru(enum lru_list l) | |||
156 | 147 | ||
157 | static inline int is_unevictable_lru(enum lru_list l) | 148 | static inline int is_unevictable_lru(enum lru_list l) |
158 | { | 149 | { |
159 | #ifdef CONFIG_UNEVICTABLE_LRU | ||
160 | return (l == LRU_UNEVICTABLE); | 150 | return (l == LRU_UNEVICTABLE); |
161 | #else | ||
162 | return 0; | ||
163 | #endif | ||
164 | } | 151 | } |
165 | 152 | ||
166 | enum zone_watermarks { | 153 | enum zone_watermarks { |