]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: memcontrol: factor out reclaim iterator loading and updating
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 19 Jun 2013 00:06:43 +0000 (10:06 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:13:26 +0000 (17:13 +1000)
commit67152c59926683ad454a34ed0531beebab14001f
treed40271b87feb22f8ddf39c39466a7d04bf2d8125
parent77b13f831353b0a06b9e8fb66b41aa4c9c490d68
mm: memcontrol: factor out reclaim iterator loading and updating

mem_cgroup_iter() is too hard to follow.  Factor out the lockless reclaim
iterator loading and updating so it's easier to follow the big picture.

Also document the iterator invalidation mechanism a bit more extensively.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reported-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Tejun Heo <tj@kernel.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Glauber Costa <glommer@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c