aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/page_cgroup.h
diff options
context:
space:
mode:
authorKAMEZAWA Hiroyuki <kamezawa@bluextal.(none)>2011-01-14 00:56:53 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2011-01-14 10:52:02 -0500
commit836cb711ad7960e52625b24195d6e70b79ab0816 (patch)
treeb2e9d2060c24f7c68bc82c8e6add25180fe8eaca /include/linux/page_cgroup.h
parent11ff26c884ec957bed87b49e3a38908f37d0d3e4 (diff)
Revert update for dirty_ratio for memcg.
The flags added by commit db16d5ec1f87f17511599bc77857dd1662b5a22f has no user now. We believe we'll use it soon but considering patch reviewing, the change itself should be folded into incoming set of "dirty ratio for memcg" patches. So, it's better to drop this change from current mainline tree. Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Reviewed-by: Greg Thelen <gthelen@google.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/page_cgroup.h')
-rw-r--r--include/linux/page_cgroup.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/include/linux/page_cgroup.h b/include/linux/page_cgroup.h
index 5b0c971d7cae..6d6cb7a57bb3 100644
--- a/include/linux/page_cgroup.h
+++ b/include/linux/page_cgroup.h
@@ -42,9 +42,6 @@ enum {
42 /* flags for mem_cgroup and file and I/O status */ 42 /* flags for mem_cgroup and file and I/O status */
43 PCG_MOVE_LOCK, /* For race between move_account v.s. following bits */ 43 PCG_MOVE_LOCK, /* For race between move_account v.s. following bits */
44 PCG_FILE_MAPPED, /* page is accounted as "mapped" */ 44 PCG_FILE_MAPPED, /* page is accounted as "mapped" */
45 PCG_FILE_DIRTY, /* page is dirty */
46 PCG_FILE_WRITEBACK, /* page is under writeback */
47 PCG_FILE_UNSTABLE_NFS, /* page is NFS unstable */
48 /* No lock in page_cgroup */ 45 /* No lock in page_cgroup */
49 PCG_ACCT_LRU, /* page has been accounted for (under lru_lock) */ 46 PCG_ACCT_LRU, /* page has been accounted for (under lru_lock) */
50}; 47};
@@ -65,10 +62,6 @@ static inline void ClearPageCgroup##uname(struct page_cgroup *pc) \
65static inline int TestClearPageCgroup##uname(struct page_cgroup *pc) \ 62static inline int TestClearPageCgroup##uname(struct page_cgroup *pc) \
66 { return test_and_clear_bit(PCG_##lname, &pc->flags); } 63 { return test_and_clear_bit(PCG_##lname, &pc->flags); }
67 64
68#define TESTSETPCGFLAG(uname, lname) \
69static inline int TestSetPageCgroup##uname(struct page_cgroup *pc) \
70 { return test_and_set_bit(PCG_##lname, &pc->flags); }
71
72/* Cache flag is set only once (at allocation) */ 65/* Cache flag is set only once (at allocation) */
73TESTPCGFLAG(Cache, CACHE) 66TESTPCGFLAG(Cache, CACHE)
74CLEARPCGFLAG(Cache, CACHE) 67CLEARPCGFLAG(Cache, CACHE)
@@ -88,22 +81,6 @@ SETPCGFLAG(FileMapped, FILE_MAPPED)
88CLEARPCGFLAG(FileMapped, FILE_MAPPED) 81CLEARPCGFLAG(FileMapped, FILE_MAPPED)
89TESTPCGFLAG(FileMapped, FILE_MAPPED) 82TESTPCGFLAG(FileMapped, FILE_MAPPED)
90 83
91SETPCGFLAG(FileDirty, FILE_DIRTY)
92CLEARPCGFLAG(FileDirty, FILE_DIRTY)
93TESTPCGFLAG(FileDirty, FILE_DIRTY)
94TESTCLEARPCGFLAG(FileDirty, FILE_DIRTY)
95TESTSETPCGFLAG(FileDirty, FILE_DIRTY)
96
97SETPCGFLAG(FileWriteback, FILE_WRITEBACK)
98CLEARPCGFLAG(FileWriteback, FILE_WRITEBACK)
99TESTPCGFLAG(FileWriteback, FILE_WRITEBACK)
100
101SETPCGFLAG(FileUnstableNFS, FILE_UNSTABLE_NFS)
102CLEARPCGFLAG(FileUnstableNFS, FILE_UNSTABLE_NFS)
103TESTPCGFLAG(FileUnstableNFS, FILE_UNSTABLE_NFS)
104TESTCLEARPCGFLAG(FileUnstableNFS, FILE_UNSTABLE_NFS)
105TESTSETPCGFLAG(FileUnstableNFS, FILE_UNSTABLE_NFS)
106
107SETPCGFLAG(Migration, MIGRATION) 84SETPCGFLAG(Migration, MIGRATION)
108CLEARPCGFLAG(Migration, MIGRATION) 85CLEARPCGFLAG(Migration, MIGRATION)
109TESTPCGFLAG(Migration, MIGRATION) 86TESTPCGFLAG(Migration, MIGRATION)