diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-15 23:33:39 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-21 21:27:09 +0300 |
commit | 189c176c5dd324531d4cb23f172b1761e65bb0ed (patch) | |
tree | bfa5c0aecb418775eb736f0e40d962564112ea93 /fs/bcachefs/rebalance.c | |
parent | ef740a1e2939376ea4cc11cc8b923214dc1f4a41 (diff) | |
download | linux-189c176c5dd324531d4cb23f172b1761e65bb0ed.tar.xz |
bcachefs: Improve move_extent tracepoint
Also print out the data_opts, so that we can see what specifically is
being done to an extent.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/rebalance.c')
-rw-r--r-- | fs/bcachefs/rebalance.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/bcachefs/rebalance.c b/fs/bcachefs/rebalance.c index a729682d653d..f24106dee21d 100644 --- a/fs/bcachefs/rebalance.c +++ b/fs/bcachefs/rebalance.c @@ -177,8 +177,7 @@ static struct bkey_s_c next_rebalance_extent(struct btree_trans *trans, prt_str(&buf, "target="); bch2_target_to_text(&buf, c, r->target); prt_str(&buf, " compression="); - struct bch_compression_opt opt = __bch2_compression_decode(r->compression); - prt_str(&buf, bch2_compression_opts[opt.type]); + bch2_compression_opt_to_text(&buf, r->compression); prt_str(&buf, " "); bch2_bkey_val_to_text(&buf, c, k); |