summaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorJan Schmidt <list.btrfs@jan-o-sch.net>2011-06-16 14:37:03 +0200
committerJan Schmidt <list.btrfs@jan-o-sch.net>2011-09-29 13:38:42 +0200
commit1503140d3ec2be9b917d2f8f7c64cb77b79a215b (patch)
tree6138ec14ae6301c69687a769cc96a39044ee49aa /COPYING
parenta1d3c4786a4b9c71c0767aa656a759968f7554b6 (diff)
downloadop-kernel-dev-1503140d3ec2be9b917d2f8f7c64cb77b79a215b.zip
op-kernel-dev-1503140d3ec2be9b917d2f8f7c64cb77b79a215b.tar.gz
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 <list.btrfs@jan-o-sch.net>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud