diff options
author | 2025-03-20 11:53:50 -0400 | |
---|---|---|
committer | 2025-03-24 09:50:36 -0400 | |
commit | 6a9f681ef623ae3804bc2ca3a2d06d2458142975 (patch) | |
tree | 90c693b0d6890fa3d27c4d9eb0816ef24d847e22 | |
parent | bcachefs: Run bch2_check_dirent_target() at lookup time (diff) | |
download | wireguard-linux-6a9f681ef623ae3804bc2ca3a2d06d2458142975.tar.xz wireguard-linux-6a9f681ef623ae3804bc2ca3a2d06d2458142975.zip |
bcachefs: Count BCH_DATA_parity backpointers correctly
These are counted as stripe data in the corresponding alloc keys.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to '')
-rw-r--r-- | fs/bcachefs/backpointers.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/backpointers.c b/fs/bcachefs/backpointers.c index c9dfc3657696..8da1b68821a0 100644 --- a/fs/bcachefs/backpointers.c +++ b/fs/bcachefs/backpointers.c @@ -50,6 +50,8 @@ void bch2_backpointer_to_text(struct printbuf *out, struct bch_fs *c, struct bke } bch2_btree_id_level_to_text(out, bp.v->btree_id, bp.v->level); + prt_str(out, " data_type="); + bch2_prt_data_type(out, bp.v->data_type); prt_printf(out, " suboffset=%u len=%u gen=%u pos=", (u32) bp.k->p.offset & ~(~0U << MAX_EXTENT_COMPRESS_RATIO_SHIFT), bp.v->bucket_len, @@ -791,6 +793,7 @@ static enum alloc_sector_counter data_type_to_alloc_counter(enum bch_data_type t case BCH_DATA_cached: return ALLOC_cached; case BCH_DATA_stripe: + case BCH_DATA_parity: return ALLOC_stripe; default: BUG(); |