mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
bcachefs: Fix an error path
It's possible to get -EIO in __btree_iter_traverse_all() after looping, with orig_iter NULL. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
8de819f834
commit
ab9ff73322
@ -1010,8 +1010,11 @@ retry_all:
|
||||
|
||||
if (unlikely(ret == -EIO)) {
|
||||
trans->error = true;
|
||||
if (orig_iter) {
|
||||
orig_iter->flags |= BTREE_ITER_ERROR;
|
||||
orig_iter->l[orig_iter->level].b = BTREE_ITER_NO_NODE_ERROR;
|
||||
orig_iter->l[orig_iter->level].b =
|
||||
BTREE_ITER_NO_NODE_ERROR;
|
||||
}
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user