Skip to content
Commit d6fd3b11 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcache: Explicitly track btree node's parent



This is prep work for the reworked btree insertion code.

The way we set b->parent is ugly and hacky... the problem is, when
btree_split() or garbage collection splits or rewrites a btree node, the
parent changes for all its (potentially already cached) children.

I may change this later and add some code to look through the btree node
cache and find all our cached child nodes and change the parent pointer
then...

Signed-off-by: default avatarKent Overstreet <kmo@daterainc.com>
parent 8304ad4d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment