bcachefs: Check for nonce offset inconsistency in data_update path
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 3 Nov 2023 22:38:35 +0000 (18:38 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 14 Nov 2023 02:45:03 +0000 (21:45 -0500)
commit701ff57eb3d7c86c9a53de959e0c48fa8ca446d4
tree502e021c1d21cf59a2ef7e5491ed0b9f3affe478
parent09b0283ee23a02094a43a9b93146d1060c58fc3a
bcachefs: Check for nonce offset inconsistency in data_update path

We've rarely been seeing a nonce offset inconsistency that doesn't show
up in tests: this adds some extra verification code to the data update
path that prints out more relevant info when it occurs.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/data_update.c