mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 02:36:21 +00:00
bcachefs: Fix error handling in bch2_btree_update_start()
We were checking for -EAGAIN, but we're not returned that when we didn't pass a closure to wait with - oops. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
afbc719468
commit
d602657cd1
@ -1110,8 +1110,8 @@ bch2_btree_update_start(struct btree_trans *trans, struct btree_path *path,
|
||||
goto err;
|
||||
|
||||
ret = bch2_btree_reserve_get(trans, as, nr_nodes, flags, NULL);
|
||||
if (ret == -EAGAIN ||
|
||||
ret == -ENOMEM) {
|
||||
if (bch2_err_matches(ret, ENOSPC) ||
|
||||
bch2_err_matches(ret, ENOMEM)) {
|
||||
struct closure cl;
|
||||
|
||||
closure_init_stack(&cl);
|
||||
|
Loading…
x
Reference in New Issue
Block a user