diff options
Diffstat (limited to 'include/linux/pagemap.h')
-rw-r--r-- | include/linux/pagemap.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 7a8dcb82a699..b4def5e083ed 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h | |||
@@ -95,12 +95,23 @@ static inline struct page *grab_cache_page(struct address_space *mapping, unsign | |||
95 | 95 | ||
96 | extern struct page * grab_cache_page_nowait(struct address_space *mapping, | 96 | extern struct page * grab_cache_page_nowait(struct address_space *mapping, |
97 | unsigned long index); | 97 | unsigned long index); |
98 | extern struct page * read_cache_page_async(struct address_space *mapping, | ||
99 | unsigned long index, filler_t *filler, | ||
100 | void *data); | ||
98 | extern struct page * read_cache_page(struct address_space *mapping, | 101 | extern struct page * read_cache_page(struct address_space *mapping, |
99 | unsigned long index, filler_t *filler, | 102 | unsigned long index, filler_t *filler, |
100 | void *data); | 103 | void *data); |
101 | extern int read_cache_pages(struct address_space *mapping, | 104 | extern int read_cache_pages(struct address_space *mapping, |
102 | struct list_head *pages, filler_t *filler, void *data); | 105 | struct list_head *pages, filler_t *filler, void *data); |
103 | 106 | ||
107 | static inline struct page *read_mapping_page_async( | ||
108 | struct address_space *mapping, | ||
109 | unsigned long index, void *data) | ||
110 | { | ||
111 | filler_t *filler = (filler_t *)mapping->a_ops->readpage; | ||
112 | return read_cache_page_async(mapping, index, filler, data); | ||
113 | } | ||
114 | |||
104 | static inline struct page *read_mapping_page(struct address_space *mapping, | 115 | static inline struct page *read_mapping_page(struct address_space *mapping, |
105 | unsigned long index, void *data) | 116 | unsigned long index, void *data) |
106 | { | 117 | { |