]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Fix btree_trans_peek_key_cache() BTREE_ITER_all_snapshots
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 12 Dec 2024 07:26:15 +0000 (02:26 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:23 +0000 (01:36 -0500)
commit7e320a4063a81508e171012e0f75ec4a111850d4
tree2cee6bb47ee5b12bcbd96d3d402f1559858215b3
parentc50341be4eb65d7f3b85ac740c0121e36fd69bb4
bcachefs: Fix btree_trans_peek_key_cache() BTREE_ITER_all_snapshots

In BTREE_ITER_all_snapshots mode, we're required to only return keys
where the snapshot field matches the iterator position -
BTREE_ITER_filter_snapshots requires pulling keys into the key cache
from ancestor snapshots, so we have to check for that.

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