]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcontrol: factor out reclaim iterator loading and updating
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 3 Jul 2013 22:04:51 +0000 (15:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:40 +0000 (16:07 -0700)
commita9d4b1f010ed6f51f931ee639f11270fd0b17489
tree74b52e13824051420a9901499de093c347338471
parent1440945941777ad460f4d75e96cf5c3439ce7191
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c