btrfs: btrfs_dev_replace_cancel() can return int
authorAnand Jain <anand.jain@oracle.com>
Mon, 12 Feb 2018 15:33:31 +0000 (23:33 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 13:09:30 +0000 (15:09 +0200)
commit18e67c73dc6ea5bc5d9591abf92f8841290c4fcc
tree6d898772f4be750d214e53a1ed86b6ad4f80f3ca
parent17d202b9738887c60b4903937b569df1e266eabb
btrfs: btrfs_dev_replace_cancel() can return int

Current u64 return from btrfs_dev_replace_cancel() was probably done
to match the btrfs_ioctl_dev_replace_args::result. However as our
actual return value fits in int, and it further gets typecast to u64,
so just return int.

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
fs/btrfs/dev-replace.h