summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.h
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2018-02-12 16:33:31 +0100
committerDavid Sterba <dsterba@suse.com>2018-03-26 15:09:30 +0200
commit18e67c73dc6ea5bc5d9591abf92f8841290c4fcc (patch)
tree6d898772f4be750d214e53a1ed86b6ad4f80f3ca /fs/btrfs/dev-replace.h
parentbtrfs: rename __btrfs_dev_replace_cancel() (diff)
downloadlinux-18e67c73dc6ea5bc5d9591abf92f8841290c4fcc.tar.xz
linux-18e67c73dc6ea5bc5d9591abf92f8841290c4fcc.zip
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>
Diffstat (limited to 'fs/btrfs/dev-replace.h')
-rw-r--r--fs/btrfs/dev-replace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/dev-replace.h b/fs/btrfs/dev-replace.h
index 6c3543d93e96..389de365b0db 100644
--- a/fs/btrfs/dev-replace.h
+++ b/fs/btrfs/dev-replace.h
@@ -32,7 +32,7 @@ int btrfs_dev_replace_start(struct btrfs_fs_info *fs_info,
int read_src);
void btrfs_dev_replace_status(struct btrfs_fs_info *fs_info,
struct btrfs_ioctl_dev_replace_args *args);
-u64 btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info);
+int btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info);
void btrfs_dev_replace_suspend_for_unmount(struct btrfs_fs_info *fs_info);
int btrfs_resume_dev_replace_async(struct btrfs_fs_info *fs_info);
int btrfs_dev_replace_is_ongoing(struct btrfs_dev_replace *dev_replace);