From: Anand Jain Date: Thu, 18 Jan 2018 14:00:33 +0000 (+0800) Subject: btrfs: no need to check for btrfs_fs_devices::seeding X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a848b3e547d167692483ff08622bb56dd3e4a9d6;p=openwrt%2Fstaging%2Fblogic.git btrfs: no need to check for btrfs_fs_devices::seeding There is no need to check for btrfs_fs_devices::seeding when we have checked for btrfs_fs_devices::opened, because we can't sprout without its seed FS being opened. Signed-off-by: Anand Jain Reviewed-by: Josef Bacik Signed-off-by: David Sterba --- diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 5750cd9df417..011bb9b116e6 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -618,8 +618,6 @@ static void btrfs_free_stale_device(struct btrfs_device *cur_dev) if (fs_devs->opened) continue; - if (fs_devs->seeding) - continue; list_for_each_entry(dev, &fs_devs->devices, dev_list) {