btrfs: Put mirror_num in bi_bdev
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Thu, 16 Jun 2011 10:05:19 +0000 (12:05 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Thu, 29 Sep 2011 11:38:42 +0000 (13:38 +0200)
commit2774b2ca3d49124bf1ae89e8d575b3dab4221266
tree8bbf543499cb9af6593307d04ec346a275afd443
parent1503140d3ec2be9b917d2f8f7c64cb77b79a215b
btrfs: Put mirror_num in bi_bdev

The error correction code wants to make sure that only the bad mirror is
rewritten. Thus, we need to know which mirror is the bad one. I did not
find a more apropriate field than bi_bdev. But I think using this is fine,
because it is modified by the block layer, anyway, and should not be read
after the bio returned.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
fs/btrfs/volumes.c