Commit 1617d56d authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Key cache now works for snapshots btrees



This switches btree_key_cache_fill() to use a btree iterator, not a
btree path, so that it can search for keys in previous snapshots.

We also add another iterator flag, BTREE_ITER_KEY_CACHE_FILL, to avoid
recursion back into the key cache.

This will allow us to re-enable the key cache for inodes in the next
patch.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 087e53c2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment