OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.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
a995885
..
ed471ff
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) {
/*