]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcontrol: avoid charge statistics churn during page migration
authorJohannes Weiner <hannes@cmpxchg.org>
Fri, 8 Aug 2014 21:19:33 +0000 (14:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Aug 2014 22:57:18 +0000 (15:57 -0700)
commita5d00bdf9a6956cd2c657e930276b1808a1dd4cb
tree069d4eac9f0bfa9586c978362c9b7c7d0d40b288
parentdfda4959315e2d14a3cd65b8be6d743494ce36c1
mm: memcontrol: avoid charge statistics churn during page migration

Charge migration currently disables IRQs twice to update the charge
statistics for the old page and then again for the new page.

But migration is a seamless transition of a charge from one physical
page to another one of the same size, so this should be a non-event from
an accounting point of view.  Leave the statistics alone.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c