diff options
author | Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> | 2013-07-31 22:53:37 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-31 23:41:03 +0200 |
commit | ef2a2cbdda7e9d084a85846770fcc844958881f6 (patch) | |
tree | 8942f9f69822e234bb0c2da6e0ccc0756ed2d27b /net/ax25 | |
parent | arch/x86/platform/ce4100/ce4100.c: include reboot.h (diff) | |
download | linux-ef2a2cbdda7e9d084a85846770fcc844958881f6.tar.xz linux-ef2a2cbdda7e9d084a85846770fcc844958881f6.zip |
mm/swap.c: clear PageActive before adding pages onto unevictable list
As a result of commit 13f7f78981e4 ("mm: pagevec: defer deciding which
LRU to add a page to until pagevec drain time"), pages on unevictable
lists can have both of PageActive and PageUnevictable set. This is not
only confusing, but also corrupts page migration and
shrink_[in]active_list.
This patch fixes the problem by adding ClearPageActive before adding
pages into unevictable list. It also cleans up VM_BUG_ONs.
Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/ax25')
0 files changed, 0 insertions, 0 deletions