mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
bcachefs: fast exit when darray_make_room failed
In downgrade_table_extra, the return value is needed. When it
return failed, we should exit immediately.
Fixes: 7773df19c3
("bcachefs: metadata version bucket_stripe_sectors")
Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
951dd86e7c
commit
3125c95ea6
@ -353,7 +353,9 @@ int bch2_sb_downgrade_update(struct bch_fs *c)
|
|||||||
for (unsigned i = 0; i < src->nr_errors; i++)
|
for (unsigned i = 0; i < src->nr_errors; i++)
|
||||||
dst->errors[i] = cpu_to_le16(src->errors[i]);
|
dst->errors[i] = cpu_to_le16(src->errors[i]);
|
||||||
|
|
||||||
downgrade_table_extra(c, &table);
|
ret = downgrade_table_extra(c, &table);
|
||||||
|
if (ret)
|
||||||
|
goto out;
|
||||||
|
|
||||||
if (!dst->recovery_passes[0] &&
|
if (!dst->recovery_passes[0] &&
|
||||||
!dst->recovery_passes[1] &&
|
!dst->recovery_passes[1] &&
|
||||||
|
Loading…
Reference in New Issue
Block a user