]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
__bio_clone: don't calculate hw/phys segment counts
authorJens Axboe <jens.axboe@oracle.com>
Fri, 25 Jan 2008 11:44:44 +0000 (12:44 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 28 Jan 2008 09:04:46 +0000 (10:04 +0100)
commit5d84070ee0a433620c57e85dac7f82faaec5fbb3
tree9a07548504683bcde2b262b9e2d675cbe7cea2b7
parent482eb689169948e9f4966fbae6be4d6bc0bfa818
__bio_clone: don't calculate hw/phys segment counts

If the users sets a new ->bi_bdev on the bio after __bio_clone() has
returned it, the "segment counts valid" flag still remains even though
it may be different with the new target. So don't calculate segment
counts in __bio_clone().

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/bio.c