diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2014-12-10 18:42:45 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-10 20:41:05 -0500 |
commit | 64f2199389414341ed3a570663f23616c131ba25 (patch) | |
tree | 18155a07f37431fb3f2abb7b367686e71376edf3 /include/linux/page_counter.h | |
parent | e8ea14cc6eadfe2ea63e9989e16e62625a2619f8 (diff) |
mm: memcontrol: remove obsolete kmemcg pinning tricks
As charges now pin the css explicitely, there is no more need for kmemcg
to acquire a proxy reference for outstanding pages during offlining, or
maintain state to identify such "dead" groups.
This was the last user of the uncharge functions' return values, so remove
them as well.
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Vladimir Davydov <vdavydov@parallels.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: David Rientjes <rientjes@google.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/page_counter.h')
-rw-r--r-- | include/linux/page_counter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/page_counter.h b/include/linux/page_counter.h index 7cce3be99ff3..955421575d16 100644 --- a/include/linux/page_counter.h +++ b/include/linux/page_counter.h | |||
@@ -34,12 +34,12 @@ static inline unsigned long page_counter_read(struct page_counter *counter) | |||
34 | return atomic_long_read(&counter->count); | 34 | return atomic_long_read(&counter->count); |
35 | } | 35 | } |
36 | 36 | ||
37 | int page_counter_cancel(struct page_counter *counter, unsigned long nr_pages); | 37 | void page_counter_cancel(struct page_counter *counter, unsigned long nr_pages); |
38 | void page_counter_charge(struct page_counter *counter, unsigned long nr_pages); | 38 | void page_counter_charge(struct page_counter *counter, unsigned long nr_pages); |
39 | int page_counter_try_charge(struct page_counter *counter, | 39 | int page_counter_try_charge(struct page_counter *counter, |
40 | unsigned long nr_pages, | 40 | unsigned long nr_pages, |
41 | struct page_counter **fail); | 41 | struct page_counter **fail); |
42 | int page_counter_uncharge(struct page_counter *counter, unsigned long nr_pages); | 42 | void page_counter_uncharge(struct page_counter *counter, unsigned long nr_pages); |
43 | int page_counter_limit(struct page_counter *counter, unsigned long limit); | 43 | int page_counter_limit(struct page_counter *counter, unsigned long limit); |
44 | int page_counter_memparse(const char *buf, unsigned long *nr_pages); | 44 | int page_counter_memparse(const char *buf, unsigned long *nr_pages); |
45 | 45 | ||