Hello, This series cleans up pagevec API. The original motivation for the series is the patch "fs: Fix performance regression in clean_bdev_aliases()" however it has somewhat grown beyond that... The series is pretty large but most of the patches are trivial in nature. What the series does is:
* Make all pagevec_lookup_ and find_get_ functions update index to where the search terminated. Currently tagged page lookup did update the index, other variants did not... * Implement ranged variants for pagevec_lookup and find_get_ functions. Lot of callers actually want a ranged lookup and we unnecessarily opencode this in lot of them. * Remove nr_pages argument from pagevec_ API since after implementing ranged lookups everyone just wants to pass PAGEVEC_SIZE there. The conversion of the APIs for entries variants is not such a clear win as for the other cases as callers tend to play more complex games with indices etc. (hello THP). I still think the conversion is worth it for consistency but I'm open to ideas (including just discarding that part) there. The series also contains several fixes in the beginning to the bugs that I've found during these cleanups. I've included them to have a clean base (4.12-rc3) but those should get merged independently (e.g. ext4 fixes are already sitting in ext4 tree). Also it is possible to split the series in smaller parts (like convert one API at a time) however I wanted to post the full series so that people can get the full picture. The series can be also obtained from my git tree: git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git find_get_pages_range Opinions and review welcome! Honza -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html