]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Fix key cache + BTREE_ITER_all_snapshots
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 13 Dec 2024 10:29:27 +0000 (05:29 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:23 +0000 (01:36 -0500)
commitb9a37144da8d5c1f900d7d7782bbd9842a40b806
treefb88d19868aded0db3496f5995dc0d47b73c133b
parent7e320a4063a81508e171012e0f75ec4a111850d4
bcachefs: Fix key cache + BTREE_ITER_all_snapshots

Normally, whitouts (KEY_TYPE_whitout) are filtered from btree lookups,
since they exist only to represent deletions of keys in ancestor
snapshots - except, they should not be filtered in
BTREE_ITER_all_snapshots mode, so that e.g. snapshot deletion can clean
them up.

This means that that the key cache has to store whiteouts, and key cache
fills cannot filter them.

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