mm: implement find_get_pages_range_tag()
[sfrench/cifs-2.6.git] / include / linux / pagemap.h
index e08b5339023c0afae64a0ecb7a204ae3b4cb5295..956d6a80e126483b06319cfceeb578ab68db4bca 100644 (file)
@@ -366,8 +366,16 @@ static inline unsigned find_get_pages(struct address_space *mapping,
 }
 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,
-                       int tag, unsigned int nr_pages, struct page **pages);
+unsigned find_get_pages_range_tag(struct address_space *mapping, pgoff_t *index,
+                       pgoff_t end, int tag, unsigned int nr_pages,
+                       struct page **pages);
+static inline unsigned find_get_pages_tag(struct address_space *mapping,
+                       pgoff_t *index, int tag, unsigned int nr_pages,
+                       struct page **pages)
+{
+       return find_get_pages_range_tag(mapping, index, (pgoff_t)-1, tag,
+                                       nr_pages, pages);
+}
 unsigned find_get_entries_tag(struct address_space *mapping, pgoff_t start,
                        int tag, unsigned int nr_entries,
                        struct page **entries, pgoff_t *indices);