Skip to content

Commit 9a3f4d8

Browse files
Vladimir Davydovtorvalds
authored andcommitted
page-cgroup: get rid of NR_PCG_FLAGS
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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 434584f commit 9a3f4d8

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

‎include/linux/page_cgroup.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@ enum {
66
PCG_USED = 0x01, /* This page is charged to a memcg */
77
PCG_MEM = 0x02, /* This page holds a memory charge */
88
PCG_MEMSW = 0x04, /* This page holds a memory+swap charge */
9-
__NR_PCG_FLAGS,
109
};
1110

12-
#ifndef __GENERATING_BOUNDS_H
13-
#include <generated/bounds.h>
14-
1511
struct pglist_data;
1612

1713
#ifdef CONFIG_MEMCG
@@ -107,6 +103,4 @@ static inline void swap_cgroup_swapoff(int type)
107103

108104
#endif /* CONFIG_MEMCG_SWAP */
109105

110-
#endif /* !__GENERATING_BOUNDS_H */
111-
112106
#endif /* __LINUX_PAGE_CGROUP_H */

‎kernel/bounds.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include <linux/page-flags.h>
1010
#include <linux/mmzone.h>
1111
#include <linux/kbuild.h>
12-
#include <linux/page_cgroup.h>
1312
#include <linux/log2.h>
1413
#include <linux/spinlock_types.h>
1514

@@ -18,7 +17,6 @@ void foo(void)
1817
/* The enum constants to put into include/generated/bounds.h */
1918
DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS);
2019
DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES);
21-
DEFINE(NR_PCG_FLAGS, __NR_PCG_FLAGS);
2220
#ifdef CONFIG_SMP
2321
DEFINE(NR_CPUS_BITS, ilog2(CONFIG_NR_CPUS));
2422
#endif

0 commit comments

Comments
 (0)