[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20091127144636.A7E4.A69D9226@jp.fujitsu.com>
Date: Fri, 27 Nov 2009 14:47:59 +0900 (JST)
From: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
To: Vincent Li <macli@....ubc.ca>
Cc: kosaki.motohiro@...fujitsu.com,
LKML <linux-kernel@...r.kernel.org>,
linux-mm <linux-mm@...ck.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH 2/4] vmscan: make lru_index() helper function
> > @@ -1373,10 +1378,8 @@ static void shrink_active_list(unsigned long nr_pages, struct zone *zone,
> > */
> > reclaim_stat->recent_rotated[file] += nr_rotated;
> >
> > - move_active_pages_to_lru(zone, &l_active,
> > - LRU_ACTIVE + file * LRU_FILE);
> > - move_active_pages_to_lru(zone, &l_inactive,
> > - LRU_BASE + file * LRU_FILE);
> > + move_active_pages_to_lru(zone, &l_active, lru_index(1, file));
> > + move_active_pages_to_lru(zone, &l_inactive, lru_index(0, file));
>
> How about:
> move_active_pages_to_lru(zone, &l_active, lru_index(LRU_ACTIVE, file));
> move_active_pages_to_lru(zone, &l_inactive, lru_index(LRU_BASE, file));
> ?
No. lru_index mean convert two boolean to one index. it shoudn't be passed
lru index itself.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists