Commit 3f5d3fb4 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: evacuate_bucket() no longer moves cached ptrs

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 5bf9db01
...@@ -758,8 +758,13 @@ int __bch2_evacuate_bucket(struct btree_trans *trans, ...@@ -758,8 +758,13 @@ int __bch2_evacuate_bucket(struct btree_trans *trans,
data_opts.rewrite_ptrs = 0; data_opts.rewrite_ptrs = 0;
bkey_for_each_ptr(bch2_bkey_ptrs_c(k), ptr) { bkey_for_each_ptr(bch2_bkey_ptrs_c(k), ptr) {
if (ptr->dev == bucket.inode) if (ptr->dev == bucket.inode) {
data_opts.rewrite_ptrs |= 1U << i; data_opts.rewrite_ptrs |= 1U << i;
if (ptr->cached) {
bch2_trans_iter_exit(trans, &iter);
goto next;
}
}
i++; i++;
} }
......
Markdown is supported
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