btrfs: fix memory leak when there is no more seed device
authorAnand Jain <Anand.Jain@oracle.com>
Wed, 13 Aug 2014 06:24:23 +0000 (14:24 +0800)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:38:09 +0000 (13:38 -0700)
commit8bef8401a04ae1937f3330484c2d7a8c6b9b9897
treea03891299bf44f1d83802b3aa3914b652581de4f
parent94d5f0c2ae83c367fe870b49ed0c87025be2956e
btrfs: fix memory leak when there is no more seed device

When we replace all the seed device in the system there is
no point in just keeping the btrfs_fs_devices with out
any device

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