Skip to contentSkip to conversation

memcg: cleanup useless LRU_ALL_EVICTABLE

PATCH In review Wanpeng Li 2 participants 2 messages Jun 25, 2012 – Jun 26, 2012

Subsystems (3)
lore
Share & tools
lore

Wanpeng Li

author
#0 lore raw

PATCH v4 1/2 memcg: cleanup useless LRU_ALL_EVICTABLE

From: Wanpeng Li <[email protected]>

Since LRU_ALL_EVICTABLE is useless, just remove it.

---
 include/linux/mmzone.h |    1 -
 1 file changed, 1 deletion(-)
include/linux/mmzone.h +0 -1
index 68c569f..8b10c35 100644
@@ -209,7 +209,6 @@ struct lruvec {
 /* Mask used at gathering information at once (see memcontrol.c) */
 #define LRU_ALL_FILE (BIT(LRU_INACTIVE_FILE) | BIT(LRU_ACTIVE_FILE))
 #define LRU_ALL_ANON (BIT(LRU_INACTIVE_ANON) | BIT(LRU_ACTIVE_ANON))
-#define LRU_ALL_EVICTABLE (LRU_ALL_FILE | LRU_ALL_ANON)
 #define LRU_ALL	     ((1 << NR_LRU_LISTS) - 1)
 
 /* Isolate clean file */
Signature · 1 line
1.7.9.5
Acked-by on v4 1/2
#1 lore raw
Quoted 5 lines · Wanpeng Li

From: Wanpeng Li <[email protected]>

Since LRU_ALL_EVICTABLE is useless, just remove it.

Thank you for your patience.

hmm..but this may noe be related to memcg ;)

Quoted 17 lines
---
  include/linux/mmzone.h |    1 -
  1 file changed, 1 deletion(-)
include/linux/mmzone.h +0 -1
index 68c569f..8b10c35 100644
@@ -209,7 +209,6 @@ struct lruvec {
  /* Mask used at gathering information at once (see memcontrol.c) */
  #define LRU_ALL_FILE (BIT(LRU_INACTIVE_FILE) | BIT(LRU_ACTIVE_FILE))
  #define LRU_ALL_ANON (BIT(LRU_INACTIVE_ANON) | BIT(LRU_ACTIVE_ANON))
-#define LRU_ALL_EVICTABLE (LRU_ALL_FILE | LRU_ALL_ANON)
  #define LRU_ALL	     ((1 << NR_LRU_LISTS) - 1)
 
  /* Isolate clean file */