From: Kent Overstreet Date: Wed, 29 Jan 2025 20:51:37 +0000 (-0500) Subject: bcachefs: Fix missing increment of move_extent_write counter X-Git-Tag: v6.15-rc1~146^2~176 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e5a63ad343cc19c64875f2496ce5f7b992ef0c32;p=thirdparty%2Fkernel%2Flinux.git bcachefs: Fix missing increment of move_extent_write counter Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/data_update.c b/fs/bcachefs/data_update.c index 642fbc60ecab1..e2050256136e2 100644 --- a/fs/bcachefs/data_update.c +++ b/fs/bcachefs/data_update.c @@ -436,6 +436,8 @@ void bch2_data_update_read_done(struct data_update *m, m->op.crc = crc; m->op.wbio.bio.bi_iter.bi_size = crc.compressed_size << 9; + this_cpu_add(m->op.c->counters[BCH_COUNTER_move_extent_write], m->k.k->k.size); + closure_call(&m->op.cl, bch2_write, NULL, NULL); }