From: Anand Jain Date: Tue, 20 Feb 2018 14:50:36 +0000 (+0800) Subject: btrfs: remove assert in btrfs_init_dev_replace_tgtdev() X-Git-Tag: v5.15~8810^2~129 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16db5758fef8c71b0353a7b5505496d6f9229820;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: David Sterba --- diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 797e770..b580ef0 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -2658,7 +2658,6 @@ int btrfs_init_dev_replace_tgtdev(struct btrfs_fs_info *fs_info, device->total_bytes = btrfs_device_get_total_bytes(srcdev); device->disk_total_bytes = btrfs_device_get_disk_total_bytes(srcdev); device->bytes_used = btrfs_device_get_bytes_used(srcdev); - ASSERT(list_empty(&srcdev->resized_list)); device->commit_total_bytes = srcdev->commit_total_bytes; device->commit_bytes_used = device->bytes_used; device->fs_info = fs_info;