aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmzone.h
diff options
context:
space:
mode:
authorKonstantin Khlebnikov <khlebnikov@openvz.org>2012-05-29 18:06:54 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-05-29 19:22:25 -0400
commitf3fd4a61928a5edf5b033a417e761b488b43e203 (patch)
treef56c5b6f4a4c732c9167e4cacb3e9c25ced0d000 /include/linux/mmzone.h
parent014483bcccc5edbf861d89dc1a6f7cdc02f9f4c0 (diff)
mm: remove lru type checks from __isolate_lru_page()
After patch "mm: forbid lumpy-reclaim in shrink_active_list()" we can completely remove anon/file and active/inactive lru type filters from __isolate_lru_page(), because isolation for 0-order reclaim always isolates pages from right lru list. And pages-isolation for lumpy shrink_inactive_list() or memory-compaction anyway allowed to isolate pages from all evictable lru lists. Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Hugh Dickins <hughd@google.com> Acked-by: Michal Hocko <mhocko@suse.cz> Cc: Glauber Costa <glommer@parallels.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Minchan Kim <minchan@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r--include/linux/mmzone.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 1b89861eedc0..5c4880bc027a 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -209,16 +209,12 @@ struct lruvec {
209#define LRU_ALL_EVICTABLE (LRU_ALL_FILE | LRU_ALL_ANON) 209#define LRU_ALL_EVICTABLE (LRU_ALL_FILE | LRU_ALL_ANON)
210#define LRU_ALL ((1 << NR_LRU_LISTS) - 1) 210#define LRU_ALL ((1 << NR_LRU_LISTS) - 1)
211 211
212/* Isolate inactive pages */
213#define ISOLATE_INACTIVE ((__force isolate_mode_t)0x1)
214/* Isolate active pages */
215#define ISOLATE_ACTIVE ((__force isolate_mode_t)0x2)
216/* Isolate clean file */ 212/* Isolate clean file */
217#define ISOLATE_CLEAN ((__force isolate_mode_t)0x4) 213#define ISOLATE_CLEAN ((__force isolate_mode_t)0x1)
218/* Isolate unmapped file */ 214/* Isolate unmapped file */
219#define ISOLATE_UNMAPPED ((__force isolate_mode_t)0x8) 215#define ISOLATE_UNMAPPED ((__force isolate_mode_t)0x2)
220/* Isolate for asynchronous migration */ 216/* Isolate for asynchronous migration */
221#define ISOLATE_ASYNC_MIGRATE ((__force isolate_mode_t)0x10) 217#define ISOLATE_ASYNC_MIGRATE ((__force isolate_mode_t)0x4)
222 218
223/* LRU Isolation modes. */ 219/* LRU Isolation modes. */
224typedef unsigned __bitwise__ isolate_mode_t; 220typedef unsigned __bitwise__ isolate_mode_t;