summaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2018-01-18 15:00:33 +0100
committerDavid Sterba <dsterba@suse.com>2018-01-22 20:25:44 +0100
commita848b3e547d167692483ff08622bb56dd3e4a9d6 (patch)
treeb2797a643d7e5c4e37ff043a2b80f48f09ca7a62 /fs/btrfs
parentbtrfs: Use IS_ALIGNED in btrfs_truncate_block instead of opencoding it (diff)
downloadlinux-a848b3e547d167692483ff08622bb56dd3e4a9d6.tar.xz
linux-a848b3e547d167692483ff08622bb56dd3e4a9d6.zip
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 <anand.jain@oracle.com> Reviewed-by: Josef Bacik <jbacik@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/volumes.c2
1 files changed, 0 insertions, 2 deletions
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) {