Re: [PATCH v3 0/3] xfs: clean up directory data block header padding
From: Carlos Maiolino
Date: Mon Apr 27 2026 - 09:29:36 EST
On Sat, 11 Apr 2026 15:24:12 +0100, Yuto Ohnuki wrote:
> The pad field in xfs_dir3_data_hdr exists for 64-bit alignment and
> should always be zero. Old kernels zeroed only the xfs_dir3_blk_hdr
> portion of the header during initialization and initialized the
> remaining header contents separately.
>
> This series takes a broader approach as suggested by Dave Chinner:
> zero the entire header region unconditionally, self-heal stale non-zero
> padding during writes, and report remaining non-zero padding in scrub.
>
> [...]
Applied to for-next, thanks!
[1/3] xfs: zero entire directory data block header region at init
commit: 00dd8d7ec5253c6273023a0fd6dc08683e0bdfef
[2/3] xfs: zero directory data block padding on write verification
commit: 8fbb1877dfa5e26bda1baf8cc6abd3f805098486
[3/3] xfs: check directory data block header padding in scrub
commit: 939919ccddfcc379bb82b1f90f732d9a5cb32cc8
Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>