Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / include / linux / pagevec.h
index e6e43ce..8eb7fa7 100644 (file)
@@ -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 */