summaryrefslogtreecommitdiffstats
path: root/lib/test_static_key_base.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2019-08-02 00:50:43 +0200
committerJens Axboe <axboe@kernel.dk>2019-08-05 05:41:29 +0200
commit708b25b344fd9bedd02ccc0f8eee71f7006d7d07 (patch)
tree10e66635ab399a06a933807a59db788164a18fb4 /lib/test_static_key_base.c
parentblock: Simplify bvec_split_segs() (diff)
downloadlinux-708b25b344fd9bedd02ccc0f8eee71f7006d7d07.tar.xz
linux-708b25b344fd9bedd02ccc0f8eee71f7006d7d07.zip
block: Simplify blk_bio_segment_split()
Move the max_sectors check into bvec_split_segs() such that a single call to that function can do all the necessary checks. This patch optimizes the fast path further, namely if a bvec fits in a page. Cc: Christoph Hellwig <hch@lst.de> Cc: Ming Lei <ming.lei@redhat.com> Cc: Hannes Reinecke <hare@suse.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/test_static_key_base.c')
0 files changed, 0 insertions, 0 deletions