diff --git a/mm/vmscan.c b/mm/vmscan.c index 1be5a63..92573b7 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -489,7 +489,8 @@ static unsigned long shrink_page_list(struct list_head *page_list, * Anonymous process memory has backing store? * Try to allocate it some swap space here. */ - if (PageAnon(page) && !PageSwapCache(page)) + if (PageAnon(page) && !PageSwapCache(page) && + !PagePrivate(page)) if (!add_to_swap(page, GFP_ATOMIC)) goto activate_locked; #endif /* CONFIG_SWAP */