Filipe Manana d00c2d9c76 Btrfs: do not overwrite error return value in the balance ioctl
If the call to btrfs_balance() failed we would overwrite the error
returned to user space with -EFAULT if the call to copy_to_user() failed
as well. Fix that by calling copy_to_user() only if btrfs_balance()
returned success or was canceled.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2019-02-25 14:13:21 +01:00
..
2019-02-25 14:13:20 +01:00
2018-08-06 13:12:43 +02:00
2018-04-12 16:29:55 +02:00
2018-12-17 14:51:50 +01:00
2018-03-26 15:09:39 +02:00
2018-08-06 13:12:43 +02:00
2019-02-03 08:48:33 -08:00
2018-12-17 14:51:40 +01:00