1 Mar 2008 08:02
Re: [patch 03/21] use an array for the LRU pagevecs
KOSAKI Motohiro <kosaki.motohiro <at> jp.fujitsu.com>
2008-03-01 07:02:04 GMT
2008-03-01 07:02:04 GMT
Hi Andy
sorry, almost mistake maked by me.
> > #define for_each_lru(l) for (l = 0; l < NR_LRU_LISTS; l++)
> >
> > +static inline int is_active_lru(enum lru_list l)
> > +{
> > + if (l == LRU_ACTIVE)
> > + return 1;
> > + return 0;
>
> Can this not be:
>
> return (l == LRU_ACTIVE);
yes, your code is more better.
Thanks.
> > <at> <at> -98,6 +97,19 <at> <at> void put_pages_list(struct list_head *pa
> > EXPORT_SYMBOL(put_pages_list);
> >
> > /*
> > + * Returns the LRU list a page should be on.
> > + */
> > +enum lru_list page_lru(struct page *page)
> > +{
> > + enum lru_list lru = LRU_BASE;
> > +
(Continue reading)
RSS Feed