diff options
Diffstat (limited to 'include/linux/pagevec.h')
-rw-r--r-- | include/linux/pagevec.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/linux/pagevec.h b/include/linux/pagevec.h index 8eb7fa76c1d0..6b8f11bcc948 100644 --- a/include/linux/pagevec.h +++ b/include/linux/pagevec.h | |||
@@ -23,8 +23,7 @@ struct pagevec { | |||
23 | void __pagevec_release(struct pagevec *pvec); | 23 | void __pagevec_release(struct pagevec *pvec); |
24 | void __pagevec_release_nonlru(struct pagevec *pvec); | 24 | void __pagevec_release_nonlru(struct pagevec *pvec); |
25 | void __pagevec_free(struct pagevec *pvec); | 25 | void __pagevec_free(struct pagevec *pvec); |
26 | void __pagevec_lru_add(struct pagevec *pvec); | 26 | void ____pagevec_lru_add(struct pagevec *pvec, enum lru_list lru); |
27 | void __pagevec_lru_add_active(struct pagevec *pvec); | ||
28 | void pagevec_strip(struct pagevec *pvec); | 27 | void pagevec_strip(struct pagevec *pvec); |
29 | unsigned pagevec_lookup(struct pagevec *pvec, struct address_space *mapping, | 28 | unsigned pagevec_lookup(struct pagevec *pvec, struct address_space *mapping, |
30 | pgoff_t start, unsigned nr_pages); | 29 | pgoff_t start, unsigned nr_pages); |
@@ -81,6 +80,16 @@ static inline void pagevec_free(struct pagevec *pvec) | |||
81 | __pagevec_free(pvec); | 80 | __pagevec_free(pvec); |
82 | } | 81 | } |
83 | 82 | ||
83 | static inline void __pagevec_lru_add(struct pagevec *pvec) | ||
84 | { | ||
85 | ____pagevec_lru_add(pvec, LRU_INACTIVE); | ||
86 | } | ||
87 | |||
88 | static inline void __pagevec_lru_add_active(struct pagevec *pvec) | ||
89 | { | ||
90 | ____pagevec_lru_add(pvec, LRU_ACTIVE); | ||
91 | } | ||
92 | |||
84 | static inline void pagevec_lru_add(struct pagevec *pvec) | 93 | static inline void pagevec_lru_add(struct pagevec *pvec) |
85 | { | 94 | { |
86 | if (pagevec_count(pvec)) | 95 | if (pagevec_count(pvec)) |