Commit 844f766e authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Improve want_cached_ptr()



If promote target isn't set, rebalance should still leave a cached copy
on the faster device.

Fall back to foreground_target if it's set, or allow a cached copy on
any device if neither are set.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent df2e19a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment