diff options
Diffstat (limited to 'include/linux/pagevec.h')
| -rw-r--r-- | include/linux/pagevec.h | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/include/linux/pagevec.h b/include/linux/pagevec.h index 2aa12b8499c0..e4dbfab37729 100644 --- a/include/linux/pagevec.h +++ b/include/linux/pagevec.h | |||
| @@ -21,7 +21,7 @@ struct pagevec { | |||
| 21 | }; | 21 | }; |
| 22 | 22 | ||
| 23 | void __pagevec_release(struct pagevec *pvec); | 23 | void __pagevec_release(struct pagevec *pvec); |
| 24 | void __pagevec_lru_add(struct pagevec *pvec, enum lru_list lru); | 24 | void __pagevec_lru_add(struct pagevec *pvec); |
| 25 | unsigned pagevec_lookup(struct pagevec *pvec, struct address_space *mapping, | 25 | unsigned pagevec_lookup(struct pagevec *pvec, struct address_space *mapping, |
| 26 | pgoff_t start, unsigned nr_pages); | 26 | pgoff_t start, unsigned nr_pages); |
| 27 | unsigned pagevec_lookup_tag(struct pagevec *pvec, | 27 | unsigned pagevec_lookup_tag(struct pagevec *pvec, |
| @@ -64,36 +64,4 @@ static inline void pagevec_release(struct pagevec *pvec) | |||
| 64 | __pagevec_release(pvec); | 64 | __pagevec_release(pvec); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | static inline void __pagevec_lru_add_anon(struct pagevec *pvec) | ||
| 68 | { | ||
| 69 | __pagevec_lru_add(pvec, LRU_INACTIVE_ANON); | ||
| 70 | } | ||
| 71 | |||
| 72 | static inline void __pagevec_lru_add_active_anon(struct pagevec *pvec) | ||
| 73 | { | ||
| 74 | __pagevec_lru_add(pvec, LRU_ACTIVE_ANON); | ||
| 75 | } | ||
| 76 | |||
| 77 | static inline void __pagevec_lru_add_file(struct pagevec *pvec) | ||
| 78 | { | ||
| 79 | __pagevec_lru_add(pvec, LRU_INACTIVE_FILE); | ||
| 80 | } | ||
| 81 | |||
| 82 | static inline void __pagevec_lru_add_active_file(struct pagevec *pvec) | ||
| 83 | { | ||
| 84 | __pagevec_lru_add(pvec, LRU_ACTIVE_FILE); | ||
| 85 | } | ||
| 86 | |||
| 87 | static inline void pagevec_lru_add_file(struct pagevec *pvec) | ||
| 88 | { | ||
| 89 | if (pagevec_count(pvec)) | ||
| 90 | __pagevec_lru_add_file(pvec); | ||
| 91 | } | ||
| 92 | |||
| 93 | static inline void pagevec_lru_add_anon(struct pagevec *pvec) | ||
| 94 | { | ||
| 95 | if (pagevec_count(pvec)) | ||
| 96 | __pagevec_lru_add_anon(pvec); | ||
| 97 | } | ||
| 98 | |||
| 99 | #endif /* _LINUX_PAGEVEC_H */ | 67 | #endif /* _LINUX_PAGEVEC_H */ |
