mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
bcachefs: Fix bucket data type for stripe buckets
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
d5bd37872a
commit
03013bb0c6
@ -854,8 +854,12 @@ static int __mark_pointer(struct btree_trans *trans,
|
||||
return ret;
|
||||
|
||||
*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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user