8 #ifndef _LINUX_PAGEVEC_H
9 #define _LINUX_PAGEVEC_H
12 #define PAGEVEC_SIZE 14
31 static inline void pagevec_init(
struct pagevec *pvec,
int cold)
37 static inline void pagevec_reinit(
struct pagevec *pvec)
42 static inline unsigned pagevec_count(
struct pagevec *pvec)
47 static inline unsigned pagevec_space(
struct pagevec *pvec)
55 static inline unsigned pagevec_add(
struct pagevec *pvec,
struct page *
page)
58 return pagevec_space(pvec);
61 static inline void pagevec_release(
struct pagevec *pvec)
63 if (pagevec_count(pvec))
67 static inline void __pagevec_lru_add_anon(
struct pagevec *pvec)
72 static inline void __pagevec_lru_add_active_anon(
struct pagevec *pvec)
77 static inline void __pagevec_lru_add_file(
struct pagevec *pvec)
82 static inline void __pagevec_lru_add_active_file(
struct pagevec *pvec)
87 static inline void pagevec_lru_add_file(
struct pagevec *pvec)
89 if (pagevec_count(pvec))
90 __pagevec_lru_add_file(pvec);
93 static inline void pagevec_lru_add_anon(
struct pagevec *pvec)
95 if (pagevec_count(pvec))
96 __pagevec_lru_add_anon(pvec);