diff options
| author | Yuto Ohnuki <ytohnuki@amazon.com> | 2026-04-11 17:24:13 +0300 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-04-27 11:36:36 +0300 |
| commit | 00dd8d7ec5253c6273023a0fd6dc08683e0bdfef (patch) | |
| tree | f2dffa109004e4e7ff87a275f4de8feea530406a /drivers/gpu/tests/git@radix-linux.su:pub | |
| parent | bfb4dc533d0abaca07013dd71e6b5c6f182232b3 (diff) | |
| download | linux-00dd8d7ec5253c6273023a0fd6dc08683e0bdfef.tar.xz | |
xfs: zero entire directory data block header region at init
xfs_dir3_data_init currently zeroes only the xfs_dir3_blk_hdr portion of
the directory data block header, then manually initializes the bestfree
entries in a loop. This leaves the pad field in xfs_dir3_data_hdr
uninitialized and requires explicit zeroing of each bestfree slot.
Zero the entire header region (geo->data_entry_offset bytes)
unconditionally before setting individual fields. This covers all
current and future header fields, all padding (implicit and explicit),
and the bestfree array, so the manual zeroing loop for bestfree can be
removed.
Suggested-by: Dave Chinner <dgc@kernel.org>
Signed-off-by: Yuto Ohnuki <ytohnuki@amazon.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'drivers/gpu/tests/git@radix-linux.su:pub')
0 files changed, 0 insertions, 0 deletions
