btrfs: dev delete should remove sysfs entry
commit99994cde9c59c2b8bb67d46d531b26cc73e39747
authorAnand Jain <Anand.Jain@oracle.com>
Tue, 3 Jun 2014 03:36:00 +0000 (3 11:36 +0800)
committerChris Mason <clm@fb.com>
Sat, 28 Jun 2014 20:48:42 +0000 (28 13:48 -0700)
tree5d676af068a4e365412f6fd615892dda91843b77
parent9b4eaf43f4b0207b5d1ca8b8d22df88ea9e142fe
btrfs: dev delete should remove sysfs entry

when we delete the device from the mounted btrfs,
we would need its corresponding sysfs enty to
be removed as well.

Signed-off-by: Anand Jain <Anand.Jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/sysfs.c
fs/btrfs/sysfs.h
fs/btrfs/volumes.c