diff options
author | Jan Kara <jack@suse.cz> | 2017-09-06 19:21:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-06 20:27:27 -0400 |
commit | 397162ffa2ed1cadffe05c324c6ddc53647f9c62 (patch) | |
tree | 4a084bf8baee85c2b0624bba4907ceb72ace416c /fs/buffer.c | |
parent | f7b68046873724129798c405e1a4e326b409c08f (diff) |
mm: remove nr_pages argument from pagevec_lookup{,_range}()
All users of pagevec_lookup() and pagevec_lookup_range() now pass
PAGEVEC_SIZE as a desired number of pages.
Just drop the argument.
Link: http://lkml.kernel.org/r/20170726114704.7626-11-jack@suse.cz
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/buffer.c')
-rw-r--r-- | fs/buffer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index 8770b58ca569..50da0e102ca0 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
@@ -1633,8 +1633,7 @@ void clean_bdev_aliases(struct block_device *bdev, sector_t block, sector_t len) | |||
1633 | 1633 | ||
1634 | end = (block + len - 1) >> (PAGE_SHIFT - bd_inode->i_blkbits); | 1634 | end = (block + len - 1) >> (PAGE_SHIFT - bd_inode->i_blkbits); |
1635 | pagevec_init(&pvec, 0); | 1635 | pagevec_init(&pvec, 0); |
1636 | while (pagevec_lookup_range(&pvec, bd_mapping, &index, end, | 1636 | while (pagevec_lookup_range(&pvec, bd_mapping, &index, end)) { |
1637 | PAGEVEC_SIZE)) { | ||
1638 | count = pagevec_count(&pvec); | 1637 | count = pagevec_count(&pvec); |
1639 | for (i = 0; i < count; i++) { | 1638 | for (i = 0; i < count; i++) { |
1640 | struct page *page = pvec.pages[i]; | 1639 | struct page *page = pvec.pages[i]; |
@@ -3552,7 +3551,7 @@ page_cache_seek_hole_data(struct inode *inode, loff_t offset, loff_t length, | |||
3552 | unsigned nr_pages, i; | 3551 | unsigned nr_pages, i; |
3553 | 3552 | ||
3554 | nr_pages = pagevec_lookup_range(&pvec, inode->i_mapping, &index, | 3553 | nr_pages = pagevec_lookup_range(&pvec, inode->i_mapping, &index, |
3555 | end - 1, PAGEVEC_SIZE); | 3554 | end - 1); |
3556 | if (nr_pages == 0) | 3555 | if (nr_pages == 0) |
3557 | break; | 3556 | break; |
3558 | 3557 | ||