diff options
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index ec2b7a42b45f..b6b614364dd8 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -152,6 +152,7 @@ enum { | |||
152 | }; | 152 | }; |
153 | 153 | ||
154 | #define SWAP_CLUSTER_MAX 32 | 154 | #define SWAP_CLUSTER_MAX 32 |
155 | #define COMPACT_CLUSTER_MAX SWAP_CLUSTER_MAX | ||
155 | 156 | ||
156 | #define SWAP_MAP_MAX 0x3e /* Max duplication count, in first swap_map */ | 157 | #define SWAP_MAP_MAX 0x3e /* Max duplication count, in first swap_map */ |
157 | #define SWAP_MAP_BAD 0x3f /* Note pageblock is bad, in first swap_map */ | 158 | #define SWAP_MAP_BAD 0x3f /* Note pageblock is bad, in first swap_map */ |
@@ -224,20 +225,15 @@ static inline void lru_cache_add_anon(struct page *page) | |||
224 | __lru_cache_add(page, LRU_INACTIVE_ANON); | 225 | __lru_cache_add(page, LRU_INACTIVE_ANON); |
225 | } | 226 | } |
226 | 227 | ||
227 | static inline void lru_cache_add_active_anon(struct page *page) | ||
228 | { | ||
229 | __lru_cache_add(page, LRU_ACTIVE_ANON); | ||
230 | } | ||
231 | |||
232 | static inline void lru_cache_add_file(struct page *page) | 228 | static inline void lru_cache_add_file(struct page *page) |
233 | { | 229 | { |
234 | __lru_cache_add(page, LRU_INACTIVE_FILE); | 230 | __lru_cache_add(page, LRU_INACTIVE_FILE); |
235 | } | 231 | } |
236 | 232 | ||
237 | static inline void lru_cache_add_active_file(struct page *page) | 233 | /* LRU Isolation modes. */ |
238 | { | 234 | #define ISOLATE_INACTIVE 0 /* Isolate inactive pages. */ |
239 | __lru_cache_add(page, LRU_ACTIVE_FILE); | 235 | #define ISOLATE_ACTIVE 1 /* Isolate active pages. */ |
240 | } | 236 | #define ISOLATE_BOTH 2 /* Isolate both active and inactive pages. */ |
241 | 237 | ||
242 | /* linux/mm/vmscan.c */ | 238 | /* linux/mm/vmscan.c */ |
243 | extern unsigned long try_to_free_pages(struct zonelist *zonelist, int order, | 239 | extern unsigned long try_to_free_pages(struct zonelist *zonelist, int order, |