|
@@ -219,6 +219,12 @@ static inline struct page *page_cache_alloc_cold(struct address_space *x)
|
|
|
return __page_cache_alloc(mapping_gfp_mask(x)|__GFP_COLD);
|
|
|
}
|
|
|
|
|
|
+static inline struct page *page_cache_alloc_readahead(struct address_space *x)
|
|
|
+{
|
|
|
+ return __page_cache_alloc(mapping_gfp_mask(x) |
|
|
|
+ __GFP_COLD | __GFP_NORETRY | __GFP_NOWARN);
|
|
|
+}
|
|
|
+
|
|
|
typedef int filler_t(void *, struct page *);
|
|
|
|
|
|
extern struct page * find_get_page(struct address_space *mapping,
|