diff options
author | Matthew Wilcox <willy@infradead.org> | 2018-05-16 18:12:54 -0400 |
---|---|---|
committer | Matthew Wilcox <willy@infradead.org> | 2018-10-21 10:46:35 -0400 |
commit | a6906972fe67fb6f73ba04088f7897227fd1cd8f (patch) | |
tree | ae5e24910060321dcdbbae7c1096596f9baaa5c8 /include/linux/pagemap.h | |
parent | 3ece58a270cd1e5026282abe778bd50db7a11d08 (diff) |
page cache; Convert find_get_pages_range_tag to XArray
The 'end' parameter of the xas_for_each iterator avoids a useless
iteration at the end of the range.
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'include/linux/pagemap.h')
-rw-r--r-- | include/linux/pagemap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index cf9ad413eee9..c9bbb9a05764 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h | |||
@@ -363,10 +363,10 @@ static inline unsigned find_get_pages(struct address_space *mapping, | |||
363 | unsigned find_get_pages_contig(struct address_space *mapping, pgoff_t start, | 363 | unsigned find_get_pages_contig(struct address_space *mapping, pgoff_t start, |
364 | unsigned int nr_pages, struct page **pages); | 364 | unsigned int nr_pages, struct page **pages); |
365 | unsigned find_get_pages_range_tag(struct address_space *mapping, pgoff_t *index, | 365 | unsigned find_get_pages_range_tag(struct address_space *mapping, pgoff_t *index, |
366 | pgoff_t end, int tag, unsigned int nr_pages, | 366 | pgoff_t end, xa_mark_t tag, unsigned int nr_pages, |
367 | struct page **pages); | 367 | struct page **pages); |
368 | static inline unsigned find_get_pages_tag(struct address_space *mapping, | 368 | static inline unsigned find_get_pages_tag(struct address_space *mapping, |
369 | pgoff_t *index, int tag, unsigned int nr_pages, | 369 | pgoff_t *index, xa_mark_t tag, unsigned int nr_pages, |
370 | struct page **pages) | 370 | struct page **pages) |
371 | { | 371 | { |
372 | return find_get_pages_range_tag(mapping, index, (pgoff_t)-1, tag, | 372 | return find_get_pages_range_tag(mapping, index, (pgoff_t)-1, tag, |