aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorJohannes Weiner <hannes@cmpxchg.org>2011-03-23 19:42:35 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-23 22:46:30 -0400
commit7ffd4ca7a2cdd7a18f0b499a4e9e0e7cf36ba018 (patch)
tree1a2678ce91b9dfb2118d19e0ec457ca5582793f9 /include/linux/sched.h
parent11c9ea4e80fc3be83485667204c68d0a732f3757 (diff)
memcg: convert uncharge batching from bytes to page granularity
We never uncharge subpage quantities. Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> Cc: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 4b601be3dace..98fc7ed4b191 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1524,8 +1524,8 @@ struct task_struct {
1524 struct memcg_batch_info { 1524 struct memcg_batch_info {
1525 int do_batch; /* incremented when batch uncharge started */ 1525 int do_batch; /* incremented when batch uncharge started */
1526 struct mem_cgroup *memcg; /* target memcg of uncharge */ 1526 struct mem_cgroup *memcg; /* target memcg of uncharge */
1527 unsigned long bytes; /* uncharged usage */ 1527 unsigned long nr_pages; /* uncharged usage */
1528 unsigned long memsw_bytes; /* uncharged mem+swap usage */ 1528 unsigned long memsw_nr_pages; /* uncharged mem+swap usage */
1529 } memcg_batch; 1529 } memcg_batch;
1530#endif 1530#endif
1531}; 1531};