]> git.baikalelectronics.ru Git - kernel.git/commit
memcg: revert fix to mapcount check for this release
authorHugh Dickins <hughd@google.com>
Fri, 9 Mar 2012 21:37:32 +0000 (13:37 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 9 Mar 2012 23:32:20 +0000 (15:32 -0800)
commitc36a0dbea638f42f094de2545280299e0445950a
tree07d423a2cdb16140e8704a69788f8b9bd5ddbe13
parentf21ca427ee92c0f06591c13a7c2ef08d333d9371
memcg: revert fix to mapcount check for this release

Respectfully revert commit d3bbdd3093fb "memcg: fix mapcount check
in move charge code for anonymous page" for the 3.3 release, so that
it behaves exactly like releases 2.6.35 through 3.2 in this respect.

Horiguchi-san's commit is correct in itself, 1 makes much more sense
than 2 in that check; but it does not go far enough - swapcount
should be considered too - if we really want such a check at all.

We appear to have reached agreement now, and expect that 3.4 will
remove the mapcount check, but had better not make 3.3 different.

Signed-off-by: Hugh Dickins <hughd@google.com>
Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c