projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8de60fe
)
btrfs: scrub: return EAGAIN when fs is closing
author
David Sterba
<dsterba@suse.com>
Mon, 25 Feb 2019 18:57:41 +0000
(19:57 +0100)
committer
David Sterba
<dsterba@suse.com>
Mon, 29 Apr 2019 17:02:17 +0000
(19:02 +0200)
The error code used here is wrong as it's not invalid to try to start
scrub when umount has begun. Returning EAGAIN is more user friendly as
it's recoverable.
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/scrub.c
b/fs/btrfs/scrub.c
index a99588536c79e5fcbdbef4caf6a86852ea83205c..ed471ffbf115a3c2bc294d6a74c6d7a32ce8672f 100644
(file)
--- a/
fs/btrfs/scrub.c
+++ b/
fs/btrfs/scrub.c
@@
-3791,7
+3791,7
@@
int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start,
struct btrfs_workqueue *scrub_parity = NULL;
if (btrfs_fs_closing(fs_info))
- return -E
INVAL
;
+ return -E
AGAIN
;
if (fs_info->nodesize > BTRFS_STRIPE_LEN) {
/*