summaryrefslogtreecommitdiff
path: root/fs/bcachefs/bcachefs.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-12-31 19:41:45 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-05 23:24:20 -0500
commitd55ddf6e7a81e1e72b2f73c3cca836a6961c68af (patch)
tree64236e2119de36ca0d778ac2870f4994621ccfbb /fs/bcachefs/bcachefs.h
parent1f34c21bc685f6bd43383aefcb85a9cf604d439a (diff)
downloadlwn-d55ddf6e7a81e1e72b2f73c3cca836a6961c68af.tar.gz
lwn-d55ddf6e7a81e1e72b2f73c3cca836a6961c68af.zip
bcachefs: Online fsck can now fix errors
BCH_FS_fsck_done -> BCH_FS_fsck_running; set when we might be fixing fsck errors. Also; set fix_errors to ask by default when fsck is running. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bcachefs.h')
-rw-r--r--fs/bcachefs/bcachefs.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h
index ffef6182a477..c7ed097e41a7 100644
--- a/fs/bcachefs/bcachefs.h
+++ b/fs/bcachefs/bcachefs.h
@@ -602,9 +602,6 @@ struct bch_dev {
};
/*
- * fsck_done - kill?
- *
- * replace with something more general from enumated fsck passes/errors:
* initial_gc_unfixed
* error
* topology error
@@ -620,7 +617,7 @@ struct bch_dev {
x(going_ro) \
x(write_disable_complete) \
x(clean_shutdown) \
- x(fsck_done) \
+ x(fsck_running) \
x(initial_gc_unfixed) \
x(need_another_gc) \
x(need_delete_dead_snapshots) \