btrfs: btrfs_rm_device() should zero mirror SB as well
authorAnand Jain <anand.jain@oracle.com>
Sun, 6 Apr 2014 04:59:07 +0000 (12:59 +0800)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:20:41 +0000 (17:20 -0700)
commit4d90d28b1c5c5ab6292c0888dc1ebdfc3023f877
treedde05db2c69de9bce804b7f5c650aa8b2094c9e8
parent27cdeb7096b86f05ad018a24cdb63acdf0850a5d
btrfs: btrfs_rm_device() should zero mirror SB as well

This fix will ensure all SB copies on the disk is zeroed
when the disk is intentionally removed. This helps to
better manage disks in the user land.

This version of patch also merges the Zach patch as below.

 btrfs: don't double brelse on device rm

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Zach Brown <zab@redhat.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/volumes.c