]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit96e74431d860bc892fd9fb2feb925b5ebf2f8797
tree6d898772f4be750d214e53a1ed86b6ad4f80f3ca
parent1ff6fe04cbda3d913ff2ebc5b0faa040737366bf
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