Commit 6132c84c authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: is_ancestor bitmap



Further optimization for bch2_snapshot_is_ancestor(). We add a small
inline bitmap to snapshot_t, which indicates which of the next 128
snapshot IDs are ancestors of the current id - eliminating the last few
iterations of the loop in bch2_snapshot_is_ancestor().

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 5eaa76d8
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