]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: memcontrol: factor out reclaim iterator loading and updating
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 27 Jun 2013 23:52:11 +0000 (09:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:55 +0000 (16:37 +1000)
commit0e7738f975885b5900090bd644a29b7ec08cc83a
tree412a6aa0aced02cfbeabd3a9762fdb86a824b82b
parent024409fe29b0374970319a94a4e914596dddaeec
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