]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcontrol: track move_lock state internally
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 11 Feb 2015 23:25:01 +0000 (15:25 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Feb 2015 01:06:00 +0000 (17:06 -0800)
commit986e1d0fe2334bc4feb61c0db126aef8ce4d6bbf
tree74d4910406255087f3e72c0e4d483513d8449ad4
parente063bad38751ca48c114bea0ad6ab5cce35e1f2c
mm: memcontrol: track move_lock state internally

The complexity of memcg page stat synchronization is currently leaking
into the callsites, forcing them to keep track of the move_lock state and
the IRQ flags.  Simplify the API by tracking it in the memcg.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
Reviewed-by: Vladimir Davydov <vdavydov@parallels.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/memcontrol.h
mm/memcontrol.c
mm/page-writeback.c
mm/rmap.c