Signed-off-by: Christoph Lameter Index: linux-2.6.15-rc5-mm2/include/linux/mmzone.h =================================================================== --- linux-2.6.15-rc5-mm2.orig/include/linux/mmzone.h 2005-12-12 16:50:21.000000000 -0800 +++ linux-2.6.15-rc5-mm2/include/linux/mmzone.h 2005-12-12 16:50:30.000000000 -0800 @@ -44,6 +44,23 @@ struct zone_padding { #define ZONE_PADDING(name) #endif +enum zone_stat_item { NR_MAPPED, NR_PAGECACHE }; +#define NR_STAT_ITEMS 2 + +/* + * A hacky way of defining atomic long. Remove when + * atomic_long_t becomes available. + */ +#ifdef CONFIG_64BIT +#define atomic_long_t atomic64_t +#define atomic_long_add atomic64_add +#define atomic_long_read atomic64_read +#else +#define atomic_long_t atomic_t +#define atomic_long_add atomic_add +#define atomic_long_read atomic_read +#endif + struct per_cpu_pages { int count; /* number of pages in the list */ int high; /* high watermark, emptying needed */