]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: refine the unaligned check for always COW inodes in xfs_file_dio_write
authorChristoph Hellwig <hch@lst.de>
Fri, 27 Oct 2023 07:58:24 +0000 (09:58 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 5 Nov 2024 08:29:51 +0000 (09:29 +0100)
commit3388f5b5865d27ac7fcba7393f3ec4bd65b2b33f
tree8a5cf832a4b5b8e008c9502d55ab1527eba1d8be
parent72596bad4df5614c06c86e63ceee36777459ab6c
xfs: refine the unaligned check for always COW inodes in xfs_file_dio_write

For always COW inodes we also must check the alignment of each individual
iovec segment, as they could end up with different I/Os due to the way
bio_iov_iter_get_pages works, and we'd then overwrite an already written
block.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_file.c