]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
page-cgroup: get rid of NR_PCG_FLAGS
authorVladimir Davydov <vdavydov@parallels.com>
Thu, 26 Jun 2014 00:42:40 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:40 +0000 (10:42 +1000)
It's not used anywhere today, so let's remove it.

Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/page_cgroup.h
kernel/bounds.c

index b8f8c9e36a3ed714c3a391d676cdaf8726cde9ed..9d9f540658f5b5a7f2bdeda3c4a0e3f3e20accf0 100644 (file)
@@ -6,12 +6,8 @@ enum {
        PCG_USED = 0x01,        /* This page is charged to a memcg */
        PCG_MEM = 0x02,         /* This page holds a memory charge */
        PCG_MEMSW = 0x04,       /* This page holds a memory+swap charge */
-       __NR_PCG_FLAGS,
 };
 
-#ifndef __GENERATING_BOUNDS_H
-#include <generated/bounds.h>
-
 struct pglist_data;
 
 #ifdef CONFIG_MEMCG
@@ -107,6 +103,4 @@ static inline void swap_cgroup_swapoff(int type)
 
 #endif /* CONFIG_MEMCG_SWAP */
 
-#endif /* !__GENERATING_BOUNDS_H */
-
 #endif /* __LINUX_PAGE_CGROUP_H */
index 9fd4246b04b8298ec608dbba4d9ee9997e105fbc..e1d1d1952bfa37eaafd87486e03555051e16283c 100644 (file)
@@ -9,7 +9,6 @@
 #include <linux/page-flags.h>
 #include <linux/mmzone.h>
 #include <linux/kbuild.h>
-#include <linux/page_cgroup.h>
 #include <linux/log2.h>
 #include <linux/spinlock_types.h>
 
@@ -18,7 +17,6 @@ void foo(void)
        /* The enum constants to put into include/generated/bounds.h */
        DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS);
        DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES);
-       DEFINE(NR_PCG_FLAGS, __NR_PCG_FLAGS);
 #ifdef CONFIG_SMP
        DEFINE(NR_CPUS_BITS, ilog2(CONFIG_NR_CPUS));
 #endif