git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
diff --git
a/include/linux/pagevec.h
b/include/linux/pagevec.h
index
e6e43ce
..
8eb7fa7
100644
(file)
--- 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.
*/
* 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 {
struct page;
struct address_space;
struct pagevec {
- unsigned nr;
-
int
cold;
+ unsigned
long
nr;
+
unsigned long
cold;
struct page *pages[PAGEVEC_SIZE];
};
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);
}
if (pagevec_count(pvec))
__pagevec_lru_add(pvec);
}
+
+#endif /* _LINUX_PAGEVEC_H */