Files
twx-linux/fs
Anand Jain d87ca19cc5 btrfs: dev-replace: set result code of cancel by status of scrub
[ Upstream commit b47dda2ef6 ]

The device-replace needs to check the result code of the scrub workers
in btrfs_dev_replace_cancel and distinguish if successful cancel
operation and when the there was no operation running.

If btrfs_scrub_cancel() fails, return
BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED so that user can try
to cancel the replace again.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ update changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-05 09:20:21 +01:00
..
…
…
2019-08-06 19:06:51 +02:00
…
2019-12-01 09:16:55 +01:00
2019-12-01 09:16:15 +01:00
2018-08-17 16:20:28 -07:00
…
2018-08-17 16:20:27 -07:00
…
2019-10-07 18:56:59 +02:00
…
…
2019-11-20 18:46:04 +01:00
2019-05-02 09:58:59 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…