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

bcachefs: don't use rht_bucket() in btree_key_cache_scan()



rht_bucket() does strange complicated things when a rehash is in
progress.

Instead, just skip scanning when a rehash is in progress: scanning is
going to be more expensive (many more empty slots to cover), and some
sort of infinite loop is being observed

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