mm: implement find_get_pages_range()
[sfrench/cifs-2.6.git] / include / linux / pagemap.h
index 249b1b5964c762bd7515d5045f771d5d26cd9cfe..5bbd6780f205103066bbf8b7d0d96959d5cbaed3 100644 (file)
@@ -353,8 +353,16 @@ struct page *find_lock_entry(struct address_space *mapping, pgoff_t offset);
 unsigned find_get_entries(struct address_space *mapping, pgoff_t start,
                          unsigned int nr_entries, struct page **entries,
                          pgoff_t *indices);
-unsigned find_get_pages(struct address_space *mapping, pgoff_t *start,
-                       unsigned int nr_pages, struct page **pages);
+unsigned find_get_pages_range(struct address_space *mapping, pgoff_t *start,
+                       pgoff_t end, unsigned int nr_pages,
+                       struct page **pages);
+static inline unsigned find_get_pages(struct address_space *mapping,
+                       pgoff_t *start, unsigned int nr_pages,
+                       struct page **pages)
+{
+       return find_get_pages_range(mapping, start, (pgoff_t)-1, nr_pages,
+                                   pages);
+}
 unsigned find_get_pages_contig(struct address_space *mapping, pgoff_t start,
                               unsigned int nr_pages, struct page **pages);
 unsigned find_get_pages_tag(struct address_space *mapping, pgoff_t *index,