projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7c1104
)
bcachefs: Fix assertion in bch2_dev_list_add_dev()
author
Kent Overstreet
<kent.overstreet@gmail.com>
Fri, 17 Jun 2022 23:15:26 +0000
(19:15 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:34 +0000
(17:09 -0400)
We were only allowing 4 devices in a dev_list, not 16.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/super.h
patch
|
blob
|
history
diff --git
a/fs/bcachefs/super.h
b/fs/bcachefs/super.h
index 359fa1e7fc1863dab833dd1080ec58cb913ece5b..d66de6f589ace018d212b8f34d3a554b043b7375 100644
(file)
--- a/
fs/bcachefs/super.h
+++ b/
fs/bcachefs/super.h
@@
-89,7
+89,7
@@
static inline void bch2_dev_list_add_dev(struct bch_devs_list *devs,
unsigned dev)
{
BUG_ON(bch2_dev_list_has_dev(*devs, dev));
- BUG_ON(devs->nr >=
BCH_REPLICAS_MAX
);
+ BUG_ON(devs->nr >=
ARRAY_SIZE(devs->devs)
);
devs->devs[devs->nr++] = dev;
}