aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/swap.h5
-rw-r--r--mm/vmscan.c5
2 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h
index 600b03b7732e..1e8ce148d058 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -229,6 +229,11 @@ static inline void lru_cache_add_file(struct page *page)
229 __lru_cache_add(page, LRU_INACTIVE_FILE); 229 __lru_cache_add(page, LRU_INACTIVE_FILE);
230} 230}
231 231
232/* LRU Isolation modes. */
233#define ISOLATE_INACTIVE 0 /* Isolate inactive pages. */
234#define ISOLATE_ACTIVE 1 /* Isolate active pages. */
235#define ISOLATE_BOTH 2 /* Isolate both active and inactive pages. */
236
232/* linux/mm/vmscan.c */ 237/* linux/mm/vmscan.c */
233extern unsigned long try_to_free_pages(struct zonelist *zonelist, int order, 238extern unsigned long try_to_free_pages(struct zonelist *zonelist, int order,
234 gfp_t gfp_mask, nodemask_t *mask); 239 gfp_t gfp_mask, nodemask_t *mask);
diff --git a/mm/vmscan.c b/mm/vmscan.c
index f2c367c9ec12..25b0202c60df 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -839,11 +839,6 @@ keep:
839 return nr_reclaimed; 839 return nr_reclaimed;
840} 840}
841 841
842/* LRU Isolation modes. */
843#define ISOLATE_INACTIVE 0 /* Isolate inactive pages. */
844#define ISOLATE_ACTIVE 1 /* Isolate active pages. */
845#define ISOLATE_BOTH 2 /* Isolate both active and inactive pages. */
846
847/* 842/*
848 * Attempt to remove the specified page from its LRU. Only take this page 843 * Attempt to remove the specified page from its LRU. Only take this page
849 * if it is of the appropriate PageActive status. Pages which are being 844 * if it is of the appropriate PageActive status. Pages which are being