From: Kent Overstreet Date: Thu, 20 Feb 2025 14:17:17 +0000 (-0500) Subject: bcachefs: print op->nonce on data update inconsistency X-Git-Tag: v6.14-rc5~25^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=68aaa637162787dc3374080efe03366f70b344f1;p=thirdparty%2Fkernel%2Flinux.git bcachefs: print op->nonce on data update inconsistency "nonce inconstancy" is popping up again, causing us to go emergency read-only. This one looks less serious, i.e. specific to the encryption path and not indicative of a data corruption bug. But we'll need more info to track it down. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/data_update.c b/fs/bcachefs/data_update.c index 337494facac64..642fbc60ecab1 100644 --- a/fs/bcachefs/data_update.c +++ b/fs/bcachefs/data_update.c @@ -340,6 +340,7 @@ restart_drop_extra_replicas: struct printbuf buf = PRINTBUF; prt_str(&buf, "about to insert invalid key in data update path"); + prt_printf(&buf, "\nop.nonce: %u", m->op.nonce); prt_str(&buf, "\nold: "); bch2_bkey_val_to_text(&buf, c, old); prt_str(&buf, "\nk: ");