aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pagemap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pagemap.h')
-rw-r--r--include/linux/pagemap.h11
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
96extern struct page * grab_cache_page_nowait(struct address_space *mapping, 96extern struct page * grab_cache_page_nowait(struct address_space *mapping,
97 unsigned long index); 97 unsigned long index);
98extern struct page * read_cache_page_async(struct address_space *mapping,
99 unsigned long index, filler_t *filler,
100 void *data);
98extern struct page * read_cache_page(struct address_space *mapping, 101extern 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);
101extern int read_cache_pages(struct address_space *mapping, 104extern 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
107static 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
104static inline struct page *read_mapping_page(struct address_space *mapping, 115static inline struct page *read_mapping_page(struct address_space *mapping,
105 unsigned long index, void *data) 116 unsigned long index, void *data)
106{ 117{