projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
521b806
)
bcachefs: cached data shouldn't prevent fs from mounting
author
Kent Overstreet
<kent.overstreet@gmail.com>
Thu, 21 Oct 2021 04:38:13 +0000
(
00:38
-0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:14 +0000
(17:09 -0400)
It's not an error if we don't have cached data - skip BCH_DATA_cached in
bch2_have_enough_devs().
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/replicas.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/replicas.c
b/fs/bcachefs/replicas.c
index 64fdf53a630a6b67be33959ebdb0839137c10db4..57e093983dfcfbb04b82f413d697388be6be5edb 100644
(file)
--- a/
fs/bcachefs/replicas.c
+++ b/
fs/bcachefs/replicas.c
@@
-1017,6
+1017,9
@@
bool bch2_have_enough_devs(struct bch_fs *c, struct bch_devs_mask devs,
unsigned i, nr_online = 0, nr_failed = 0, dflags = 0;
bool metadata = e->data_type < BCH_DATA_user;
+ if (e->data_type == BCH_DATA_cached)
+ continue;
+
for (i = 0; i < e->nr_devs; i++) {
struct bch_dev *ca = bch_dev_bkey_exists(c, e->devs[i]);