]> www.infradead.org Git - users/willy/xarray.git/commit
xfs: report the correct read/write dio alignment for reflinked inodes
authorChristoph Hellwig <hch@lst.de>
Thu, 9 Jan 2025 08:31:04 +0000 (09:31 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 9 Jan 2025 15:23:18 +0000 (16:23 +0100)
commit7422bbd030210fbdc011acfd6f0f15b966fd2b46
tree6886bcb1e9b20da494d24d21764c02ea7eae344c
parent7e17483c7b151ed64f8959278def2fea164526f5
xfs: report the correct read/write dio alignment for reflinked 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.

Use the new STATX_DIO_READ_ALIGN flag to report the asymmetric read
vs write alignments for reflinked files.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20250109083109.1441561-5-hch@lst.de
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/xfs/xfs_iops.c