diff options
author | Matthew Wilcox <willy@infradead.org> | 2017-12-05 17:30:38 -0500 |
---|---|---|
committer | Matthew Wilcox <willy@infradead.org> | 2018-10-21 10:46:39 -0400 |
commit | 10bbd235859bf483f9a8a4ebe95463d700bae394 (patch) | |
tree | 6507459427fbf719c2839a8cba627bfd6a128538 /mm/swap.c | |
parent | 67891ffff2f5cf10e89e348207f687a05c8bd2d6 (diff) | |
download | lwn-10bbd235859bf483f9a8a4ebe95463d700bae394.tar.gz lwn-10bbd235859bf483f9a8a4ebe95463d700bae394.zip |
pagevec: Use xa_mark_t
Removes sparse warnings.
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'mm/swap.c')
-rw-r--r-- | mm/swap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/swap.c b/mm/swap.c index 4c5c7fcc6e46..6861f3140a13 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -1002,7 +1002,7 @@ EXPORT_SYMBOL(pagevec_lookup_range); unsigned pagevec_lookup_range_tag(struct pagevec *pvec, struct address_space *mapping, pgoff_t *index, pgoff_t end, - int tag) + xa_mark_t tag) { pvec->nr = find_get_pages_range_tag(mapping, index, end, tag, PAGEVEC_SIZE, pvec->pages); @@ -1012,7 +1012,7 @@ EXPORT_SYMBOL(pagevec_lookup_range_tag); unsigned pagevec_lookup_range_nr_tag(struct pagevec *pvec, struct address_space *mapping, pgoff_t *index, pgoff_t end, - int tag, unsigned max_pages) + xa_mark_t tag, unsigned max_pages) { pvec->nr = find_get_pages_range_tag(mapping, index, end, tag, min_t(unsigned int, max_pages, PAGEVEC_SIZE), pvec->pages); |