From: Jan Schmidt Date: Thu, 16 Jun 2011 12:37:03 +0000 (+0200) Subject: btrfs: Do not use bio->bi_bdev after submission X-Git-Tag: v3.2-rc1~21^2~8^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1503140d3ec2be9b917d2f8f7c64cb77b79a215b;p=pandora-kernel.git btrfs: Do not use bio->bi_bdev after submission The block layer modifies bio->bi_bdev and bio->bi_sector while working on the bio, they do _not_ come back unmodified in the completion callback. To call add_page, we need at least some bi_bdev set, which is why the code was working, previously. With this patch, we use the latest_bdev from fsinfo instead of the leftover in the bio. This gives us the possibility to use the bi_bdev field for another purpose. Signed-off-by: Jan Schmidt --- Reading git-diff-tree failed