KAMEZAWA Hiroyuki
3eae90c3cd
memcg: remove redundant function calls
...
remove_list/add_list uses page_cgroup_zoneinfo() in it.
So, it's called twice before and after lock.
mz = page_cgroup_zoneinfo();
lock();
mz = page_cgroup_zoneinfo();
....
unlock();
And address of mz never changes.
This is not good. This patch fixes this behavior.
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-29 08:06:10 -07:00
..
2008-04-19 19:44:58 +02:00
2007-12-05 09:21:18 -08:00
2008-04-28 08:58:25 -07:00
2007-10-16 11:03:56 +02:00
2008-04-28 08:58:20 -07:00
2008-04-28 08:58:23 -07:00
2008-04-28 08:58:23 -07:00
2008-04-28 08:58:20 -07:00
2008-03-19 18:53:35 -07:00
2008-03-19 18:53:35 -07:00
2008-04-29 08:05:58 -07:00
2008-04-28 08:58:26 -07:00
2008-04-28 08:58:22 -07:00
2008-04-17 20:05:39 +02:00
2008-04-28 08:58:23 -07:00
2008-04-17 20:05:36 +02:00
2008-04-29 08:06:10 -07:00
2008-04-28 13:44:29 -07:00
2008-04-28 08:58:23 -07:00
2008-04-28 08:58:25 -07:00
2007-10-20 01:27:18 +02:00
2008-03-04 16:35:14 -08:00
2008-04-28 08:58:18 -07:00
2007-07-16 09:05:37 -07:00
2008-04-28 08:58:23 -07:00
2008-04-28 08:58:19 -07:00
2007-10-23 08:32:06 -07:00
2007-10-18 14:37:31 -07:00
2007-05-21 09:18:19 -07:00
2008-04-28 08:58:26 -07:00
2008-04-28 08:58:26 -07:00
2008-04-29 08:05:58 -07:00
2008-02-05 09:44:19 -08:00
2007-11-14 18:45:38 -08:00
2008-02-05 09:44:19 -08:00
2008-04-28 08:58:16 -07:00
2008-04-21 16:36:46 -07:00
2007-10-20 01:27:18 +02:00
2008-01-14 08:52:22 -08:00
2008-03-19 18:53:37 -07:00
2008-04-28 08:58:18 -07:00
2008-04-28 08:58:25 -07:00
2008-04-28 08:58:19 -07:00
2008-04-27 18:25:51 +03:00
2008-04-28 14:08:56 -07:00
2008-03-30 14:18:41 -07:00
2008-04-28 08:58:26 -07:00
2008-03-19 18:53:35 -07:00
2008-04-28 08:58:20 -07:00
2008-04-28 08:58:19 -07:00
2008-03-25 08:57:47 -07:00
2008-04-28 08:58:18 -07:00
2007-11-14 18:45:41 -08:00
2008-04-28 08:58:21 -07:00
2008-04-29 08:05:58 -07:00
2008-04-28 08:58:26 -07:00