]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
dio_writeback_race: align the directio buffer to base page size
authorDarrick J. Wong <djwong@kernel.org>
Thu, 20 Feb 2025 21:46:57 +0000 (13:46 -0800)
committerZorro Lang <zlang@kernel.org>
Thu, 6 Mar 2025 13:25:54 +0000 (21:25 +0800)
commit23b67c61d21310e70fba210050bc002e6c7cbd6d
tree4c557de13f3991b83d51f75d03f5a1db88d927a2
parent04b1fc9de8858c18d772828ba731bb6e4057a04c
dio_writeback_race: align the directio buffer to base page size

There's no need to align the memory buffer for the direcio write to the
file allocation unit size; base page size will do.  This fixes the
following error when generic/761 is run against an XFS rt filesystem
with a 28k rtextsize:

 QA output created by 761
+failed to allocate aligned memory
+cat: /opt/foobar: No such file or directory
 Silence is golden

Cc: <fstests@vger.kernel.org> # v2025.02.16
Fixes: 17fb49493426ad ("fstests: add a generic test to verify direct IO writes with buffer contents change")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
src/dio-writeback-race.c