Re: [PATCH] fix page aging (2.4.9-ac12)

Rik van Riel (riel@conectiva.com.br)
Thu, 20 Sep 2001 10:29:15 -0300 (BRST)


On Thu, 20 Sep 2001, Daniel Phillips wrote:

> static inline void age_page_down(struct page *page)
> {
> page->age = max((int) (age - PAGE_AGE_DECL), 0);
> }

While we're at it: ;)

static inline void age_page_down(struct page * page)
{
page->age -= min (PAGE_AGE_DECL, page->age);
}

cheers,

Rik

-- 
IA64: a worthy successor to i860.

http://www.surriel.com/ http://distro.conectiva.com/

Send all your spam to aardvark@nl.linux.org (spam digging piggy)

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