Re: [PATCH v2] xfs: use null daddr for unset first bad log block

From: Carlos Maiolino

Date: Wed Jul 01 2026 - 09:29:39 EST


On Tue, 30 Jun 2026 12:06:07 +0200, Yousef Alhouseen wrote:
> xlog_do_recovery_pass() may return before setting first_bad. The caller
> must distinguish that case from an error at a valid log block, including
> block zero after the log wraps.
>
> Initialize first_bad to XFS_BUF_DADDR_NULL and test it explicitly before
> treating the error as a torn write.
>
> [...]

Applied to for-next, thanks!

[1/1] xfs: use null daddr for unset first bad log block
commit: cc9af5e461ea5f6e37738f3f1e41c45a9b7f45d6

Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>