Re: [PATCH] Add PAGE_CACHE_PAGES

Rusty Russell (rusty@rustcorp.com.au)
Mon, 19 Aug 2002 13:56:34 +1000


In message <1029443580.2508.18.camel@gby.benyossef.com> you write:
>
> This patch introduces PAGE_CACHE_PAGES which is the number of pages in a
> page cache.

AFAICT, you should simply do

/* Order of pages in page cache */
#define PAGE_CACHE_PAGE_ORDER 0

#define PAGE_CACHE_SHIFT (PAGE_SHIFT + PAGE_CACHE_PAGE_ORDER)
#define PAGE_CACHE_SIZE (1 << PAGE_CACHE_SHIFT)
#define PAGE_CACHE_MASK (~(PAGE_CACHE_SIZE-1))
#define PAGE_CACHE_ALIGN(addr) (((addr)+PAGE_CACHE_SIZE-1)&PAGE_CACHE_MASK)

*Then* fix up the misuses,
Rusty.

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
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/