]> git.ipfire.org Git - thirdparty/linux.git/commit
xfs: report larger dio alignment for COW inodes
authorChristoph Hellwig <hch@lst.de>
Thu, 9 Jan 2025 08:31:05 +0000 (09:31 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 9 Jan 2025 15:23:18 +0000 (16:23 +0100)
commit468210ec76e155bbc53f8fc41b2bd5e26a2f6d20
tree30d739022ac9055134a15eaf74f36dc34df677bf
parent7422bbd030210fbdc011acfd6f0f15b966fd2b46
xfs: report larger dio alignment for COW inodes

For I/O to reflinked blocks we always need to write an entire new file
system block, and the code enforces the file system block alignment for
the entire file if it has any reflinked blocks.  Mirror the larger
value reported in the statx in the dio_offset_align in the xfs-specific
XFS_IOC_DIOINFO ioctl for the same reason.

Don't bother adding a new field for the read alignment to this legacy
ioctl as all new users should use statx instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20250109083109.1441561-6-hch@lst.de
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/xfs/xfs_ioctl.c