mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
bcachefs: Fix assertion in bch2_dev_list_add_dev()
We were only allowing 4 devices in a dev_list, not 16. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
b7c1104612
commit
2ed6248ab3
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ static inline void bch2_dev_list_add_dev(struct bch_devs_list *devs,
|
||||||
unsigned dev)
|
unsigned dev)
|
||||||
{
|
{
|
||||||
BUG_ON(bch2_dev_list_has_dev(*devs, 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;
|
devs->devs[devs->nr++] = dev;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue