Commit 03013bb0 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix bucket data type for stripe buckets

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent d5bd3787
...@@ -854,8 +854,12 @@ static int __mark_pointer(struct btree_trans *trans, ...@@ -854,8 +854,12 @@ static int __mark_pointer(struct btree_trans *trans,
return ret; return ret;
*dst_sectors += sectors; *dst_sectors += sectors;
*bucket_data_type = *dirty_sectors || *cached_sectors
? ptr_data_type : 0; if (!*dirty_sectors && !*cached_sectors)
*bucket_data_type = 0;
else if (*bucket_data_type != BCH_DATA_stripe)
*bucket_data_type = ptr_data_type;
return 0; return 0;
} }
......
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