]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: free the stale device
authorAnand Jain <Anand.Jain@oracle.com>
Wed, 17 Jun 2015 13:10:48 +0000 (21:10 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 19 Jun 2015 12:03:13 +0000 (14:03 +0200)
commit6115cf654dc2deaadea98ed6d988bfcb76eeeac6
tree31a47f030f88140fa99e8fc555a942435db3a0fd
parent78fc8046bfd9a4e04bcb045f72d51aabdf76c7cf
Btrfs: free the stale device

When btrfs on a device is overwritten with a new btrfs (mkfs),
the old btrfs instance in the kernel becomes stale. So with this
patch, if kernel finds device is overwritten then delete the stale
fsid/uuid.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
fs/btrfs/volumes.c