* [resend][PATCH] fix lru_cache_add_active_or_unevictable
@ 2008-07-02 13:19 KOSAKI Motohiro
0 siblings, 0 replies; only message in thread
From: KOSAKI Motohiro @ 2008-07-02 13:19 UTC (permalink / raw)
To: LKML, linux-mm, Andrew Morton, Rik van Riel, Lee Schermerhorn
Cc: kosaki.motohiro
I found I forgot insert below patch to my patchset for 2.6.26-rc5-mm3 today.
So, I resend it.
enjoy!
-------------------------
From: Rik van Riel <riel@redhat.com>
Undo an overzealous code cleanup to lru_cache_add_active_or_unevictable.
The callers do not set PageActive so the page would get added to the
wrong list.
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Index: linux-2.6.26-rc5-mm3/mm/swap.c
===================================================================
--- linux-2.6.26-rc5-mm3.orig/mm/swap.c 2008-07-01 18:47:04.000000000 +0900
+++ linux-2.6.26-rc5-mm3/mm/swap.c 2008-07-01 19:28:43.000000000 +0900
@@ -259,7 +259,7 @@
struct vm_area_struct *vma)
{
if (page_evictable(page, vma))
- lru_cache_add_lru(page, page_lru(page));
+ lru_cache_add_lru(page, LRU_ACTIVE + page_is_file_cache(page));
else
add_page_to_unevictable_list(page);
}
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-02 13:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-02 13:19 [resend][PATCH] fix lru_cache_add_active_or_unevictable KOSAKI Motohiro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox