mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
bcachefs: Fix iterator leak in may_delete_deleted_inode()
may_delete_deleted_inode() was returning without exiting a btree iterator, eventually causing propagate_key_to_snaphot_leaves() to go into an infinite loop hitting btree_trans_too_many_iters(). Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
006ccc3090
commit
069749688e
@ -1134,7 +1134,7 @@ static int may_delete_deleted_inode(struct btree_trans *trans,
|
||||
* unlinked inodes in the snapshot leaves:
|
||||
*/
|
||||
*need_another_pass = true;
|
||||
return 0;
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user