2012-06-25 11:15:45

by Wanpeng Li

[permalink] [raw]
Subject: [PATCH v4 1/2] memcg: cleanup useless LRU_ALL_EVICTABLE

From: Wanpeng Li <[email protected]>

Since LRU_ALL_EVICTABLE is useless, just remove it.

Signed-off-by: Wanpeng Li <[email protected]>
---
include/linux/mmzone.h | 1 -
1 file changed, 1 deletion(-)

diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 68c569f..8b10c35 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -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 */
--
1.7.9.5


2012-06-26 05:27:30

by Kamezawa Hiroyuki

[permalink] [raw]
Subject: Re: [PATCH v4 1/2] memcg: cleanup useless LRU_ALL_EVICTABLE

(2012/06/25 20:15), Wanpeng Li wrote:
> From: Wanpeng Li <[email protected]>
>
> Since LRU_ALL_EVICTABLE is useless, just remove it.
>
> Signed-off-by: Wanpeng Li <[email protected]>

Thank you for your patience.

Acked-by: KAMEZAWA Hiroyuki <[email protected]>

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


> ---
> include/linux/mmzone.h | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
> index 68c569f..8b10c35 100644
> --- a/include/linux/mmzone.h
> +++ b/include/linux/mmzone.h
> @@ -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 */
>