summaryrefslogtreecommitdiffstats
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-02-28 17:00:18 +0100
committerJens Axboe <axboe@kernel.dk>2019-02-28 21:49:22 +0100
commit5b88a17cfdeba75e0092bab2c79aaf7d9e7db482 (patch)
tree9b4eb6248df2e42fa08c1138fa0c0ca49d48f35b /fs/buffer.c
parentblock: introduce mp_bvec_for_each_page() for iterating over page (diff)
downloadlinux-5b88a17cfdeba75e0092bab2c79aaf7d9e7db482.tar.xz
linux-5b88a17cfdeba75e0092bab2c79aaf7d9e7db482.zip
block: optimize bvec iteration in bvec_iter_advance
There is no need to only iterate in chunks of PAGE_SIZE or less in bvec_iter_advance, given that the callers pass in the chunk length that they are operating on - either that already is less than PAGE_SIZE because they do classic page-based iteration, or it is larger because the caller operates on multi-page bvecs. This should help shaving off a few cycles of the I/O hot path. Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/buffer.c')
0 files changed, 0 insertions, 0 deletions