]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove assert in btrfs_init_dev_replace_tgtdev()
authorAnand Jain <Anand.Jain@oracle.com>
Tue, 20 Feb 2018 14:50:36 +0000 (22:50 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 13:09:40 +0000 (15:09 +0200)
commitd4fed28cff01ca4a7f25b179121392266b9371f3
tree1422f0b87d7875517e0d87681649c80dfffe0a43
parentd8f924dcd20ac01f01318dbbc2215aa3339def5d
btrfs: remove assert in btrfs_init_dev_replace_tgtdev()

In the same function we just ran btrfs_alloc_device() which means the
btrfs_device::resized_list is sure to be empty and we are protected
with the btrfs_fs_info::volume_mutex.

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