From: NeilBrown Date: Thu, 16 Aug 2007 11:27:52 +0000 (+0200) Subject: Merge blk_recount_segments into blk_recalc_rq_segments X-Git-Tag: v2.6.24-rc1~1460^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dfa52831e96194b8649613e3131baa2c109f7dc;p=pandora-kernel.git Merge blk_recount_segments into blk_recalc_rq_segments blk_recalc_rq_segments calls blk_recount_segments on each bio, then does some extra calculations to handle segments that overlap two bios. If we merge the code from blk_recount_segments into blk_recalc_rq_segments, we can process the whole request one bio_vec at a time, and not need the messy cross-bio calculations. Then blk_recount_segments can be implemented by calling blk_recalc_rq_segments, passing it a simple on-stack request which stores just the bio. Signed-off-by: Neil Brown diff .prev/block/ll_rw_blk.c ./block/ll_rw_blk.c Signed-off-by: Jens Axboe --- Reading git-diff-tree failed