Re: [resend][PATCH -mm] split_lru: fix pagevec_move_tail() doesn'ttreat unevictable page

From: Rik van Riel
Date: Tue Jul 01 2008 - 09:39:30 EST


On Tue, 01 Jul 2008 17:26:51 +0900
KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> wrote:

> Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>

Acked-by: Rik van Riel <riel@xxxxxxxxxx>

Good catch!

> @@ -116,7 +116,7 @@ static void pagevec_move_tail(struct pag
> zone = pagezone;
> spin_lock(&zone->lru_lock);
> }
> - if (PageLRU(page) && !PageActive(page)) {
> + if (PageLRU(page) && !PageActive(page) && !PageUnevictable(page)) {
> int lru = page_is_file_cache(page);
> list_move_tail(&page->lru, &zone->lru[lru].list);
> pgmoved++;

--
All rights reversed.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/