]> git.baikalelectronics.ru Git - kernel.git/commit
block: setup bi_phys_segments after splitting
authorMing Lei <ming.lei@canonical.com>
Tue, 20 Oct 2015 15:13:52 +0000 (23:13 +0800)
committerJens Axboe <axboe@fb.com>
Wed, 21 Oct 2015 21:00:50 +0000 (15:00 -0600)
commit55d1b8b6a8605dbfb0e9959b633fbc3fbcb46f26
tree441b9c9b16d55c157db90c499ba4fd2821bfe60b
parent2aee29c63454c8c723f4fa61ae1c8fb8238fe0b8
block: setup bi_phys_segments after splitting

The number of bio->bi_phys_segments is always obtained
during bio splitting, so it is natural to setup it
just after bio splitting, then we can avoid to compute
nr_segment again during merge.

Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-merge.c