btrfs: silence warning if replace is canceled
authorAnand Jain <anand.jain@oracle.com>
Tue, 20 Nov 2018 11:56:15 +0000 (19:56 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:35 +0000 (14:51 +0100)
commit49365e69762715fb301db0bce3333e4c41dda810
treedc78dd9056bf7d1dc521569f553a7d0a02fb2f1e
parent53e62fb5a4aedeff05aa1efd277de32dc765f4bf
btrfs: silence warning if replace is canceled

When we successfully cancel the device replace, its scrub worker returns
-ECANCELED, which is then passed to btrfs_dev_replace_finishing.

It cleans up based on the returned status and propagates the same
-ECANCELED back the parent function. As of now only user can cancel the
replace-scrub, so its ok to silence the warning here.

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