From: NeilBrown Date: Thu, 16 Aug 2007 11:31:26 +0000 (+0200) Subject: Fix various abuse of bio fields in umem.c X-Git-Tag: v2.6.24-rc1~1460^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eea9befaccb8d43ce89585d612159761c978f056;p=pandora-kernel.git Fix various abuse of bio fields in umem.c umem.c: advances bi_idx and bi_sector to track where it is up to. But it is only ever doing this on one bio, so the updated fields can easily be kept elsewhere (current_*). updates bi_size, but never uses the updated values, so this isn't needed. reuses bi_phys_segments to count how many iovecs have been completely. As the completion happens sequentiually, we can store this information outside the bio too. Signed-off-by: Neil Brown diff .prev/drivers/block/umem.c ./drivers/block/umem.c Signed-off-by: Jens Axboe --- Reading git-diff-tree failed