diff options
author | KAMEZAWA Hiroyuki <kamezawa@bluextal.(none)> | 2011-01-14 00:56:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-14 10:52:02 -0500 |
commit | 836cb711ad7960e52625b24195d6e70b79ab0816 (patch) | |
tree | b2e9d2060c24f7c68bc82c8e6add25180fe8eaca /include/linux/page_cgroup.h | |
parent | 11ff26c884ec957bed87b49e3a38908f37d0d3e4 (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.h | 23 |
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) \ | |||
65 | static inline int TestClearPageCgroup##uname(struct page_cgroup *pc) \ | 62 | static 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) \ | ||
69 | static 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) */ |
73 | TESTPCGFLAG(Cache, CACHE) | 66 | TESTPCGFLAG(Cache, CACHE) |
74 | CLEARPCGFLAG(Cache, CACHE) | 67 | CLEARPCGFLAG(Cache, CACHE) |
@@ -88,22 +81,6 @@ SETPCGFLAG(FileMapped, FILE_MAPPED) | |||
88 | CLEARPCGFLAG(FileMapped, FILE_MAPPED) | 81 | CLEARPCGFLAG(FileMapped, FILE_MAPPED) |
89 | TESTPCGFLAG(FileMapped, FILE_MAPPED) | 82 | TESTPCGFLAG(FileMapped, FILE_MAPPED) |
90 | 83 | ||
91 | SETPCGFLAG(FileDirty, FILE_DIRTY) | ||
92 | CLEARPCGFLAG(FileDirty, FILE_DIRTY) | ||
93 | TESTPCGFLAG(FileDirty, FILE_DIRTY) | ||
94 | TESTCLEARPCGFLAG(FileDirty, FILE_DIRTY) | ||
95 | TESTSETPCGFLAG(FileDirty, FILE_DIRTY) | ||
96 | |||
97 | SETPCGFLAG(FileWriteback, FILE_WRITEBACK) | ||
98 | CLEARPCGFLAG(FileWriteback, FILE_WRITEBACK) | ||
99 | TESTPCGFLAG(FileWriteback, FILE_WRITEBACK) | ||
100 | |||
101 | SETPCGFLAG(FileUnstableNFS, FILE_UNSTABLE_NFS) | ||
102 | CLEARPCGFLAG(FileUnstableNFS, FILE_UNSTABLE_NFS) | ||
103 | TESTPCGFLAG(FileUnstableNFS, FILE_UNSTABLE_NFS) | ||
104 | TESTCLEARPCGFLAG(FileUnstableNFS, FILE_UNSTABLE_NFS) | ||
105 | TESTSETPCGFLAG(FileUnstableNFS, FILE_UNSTABLE_NFS) | ||
106 | |||
107 | SETPCGFLAG(Migration, MIGRATION) | 84 | SETPCGFLAG(Migration, MIGRATION) |
108 | CLEARPCGFLAG(Migration, MIGRATION) | 85 | CLEARPCGFLAG(Migration, MIGRATION) |
109 | TESTPCGFLAG(Migration, MIGRATION) | 86 | TESTPCGFLAG(Migration, MIGRATION) |