]> git.baikalelectronics.ru Git - kernel.git/commit
mm/balloon_compaction: fix deflation when compaction is disabled
authorKonstantin Khlebnikov <k.khlebnikov@samsung.com>
Wed, 29 Oct 2014 21:51:02 +0000 (14:51 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 29 Oct 2014 23:33:15 +0000 (16:33 -0700)
commit9d8e3ab2316e6b0ca8fbadd0a613ff2039e954cb
tree8978c913f0c9f903efa665520ffe203d9013ff15
parent5af4992f7f08cf108742d5362a6df58a98213e3f
mm/balloon_compaction: fix deflation when compaction is disabled

If CONFIG_BALLOON_COMPACTION=n balloon_page_insert() does not link pages
with balloon and doesn't set PagePrivate flag, as a result
balloon_page_dequeue() cannot get any pages because it thinks that all
of them are isolated.  Without balloon compaction nobody can isolate
ballooned pages.  It's safe to remove this check.

Fixes: 551c4657cb6f ("mm/balloon_compaction: redesign ballooned pages management").
Signed-off-by: Konstantin Khlebnikov <k.khlebnikov@samsung.com>
Reported-by: Matt Mullins <mmullins@mmlx.us>
Cc: <stable@vger.kernel.org> [3.17]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/balloon_compaction.c