bcachefs: bch2_path_put_nokeep()
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 11 Oct 2022 10:37:56 +0000 (06:37 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:43 +0000 (17:09 -0400)
commit7dcbdbd85cc3af14c0b9b5b80eb87cca8a322285
tree8b9cec9dc092517519d48dca1d1602f3fcf22e92
parent5b3243cb528f96e5d90d65f56f96ad179c666ff5
bcachefs: bch2_path_put_nokeep()

The btree iterator code may allocate extra btree paths, temporarily,
that do not refer to keys being returned: we don't need to wait until
transaction restart to drop these, when they're not referenced they
should be deleted right away.

This fixes a transaction path overflow bug.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_iter.c