]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit39b476b9e18cf46a9e3091656a74b444244fcabe
treedde05db2c69de9bce804b7f5c650aa8b2094c9e8
parentf7cd8f52cc15694169be0039e812765ca72ddb6c
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