X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fpagevec.h;h=8eb7fa76c1d025055683c6428388213e9ae2af2c;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=e6e43ce82b55a825dca7185635f626718313b3aa;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/linux/pagevec.h b/include/linux/pagevec.h index e6e43ce82..8eb7fa76c 100644 --- a/include/linux/pagevec.h +++ b/include/linux/pagevec.h @@ -5,14 +5,18 @@ * pages. A pagevec is a multipage container which is used for that. */ -#define PAGEVEC_SIZE 16 +#ifndef _LINUX_PAGEVEC_H +#define _LINUX_PAGEVEC_H + +/* 14 pointers + two long's align the pagevec structure to a power of two */ +#define PAGEVEC_SIZE 14 struct page; struct address_space; struct pagevec { - unsigned nr; - int cold; + unsigned long nr; + unsigned long cold; struct page *pages[PAGEVEC_SIZE]; }; @@ -82,3 +86,5 @@ static inline void pagevec_lru_add(struct pagevec *pvec) if (pagevec_count(pvec)) __pagevec_lru_add(pvec); } + +#endif /* _LINUX_PAGEVEC_H */