hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/fs/xfs/xfs_buf_item_recover.c
....@@ -924,6 +924,16 @@
924924 if (lsn && lsn != -1 && XFS_LSN_CMP(lsn, current_lsn) >= 0) {
925925 trace_xfs_log_recover_buf_skip(log, buf_f);
926926 xlog_recover_validate_buf_type(mp, bp, buf_f, NULLCOMMITLSN);
927
+
928
+ /*
929
+ * We're skipping replay of this buffer log item due to the log
930
+ * item LSN being behind the ondisk buffer. Verify the buffer
931
+ * contents since we aren't going to run the write verifier.
932
+ */
933
+ if (bp->b_ops) {
934
+ bp->b_ops->verify_read(bp);
935
+ error = bp->b_error;
936
+ }
927937 goto out_release;
928938 }
929939