]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: apply rt extent alignment constraints to CoW extsize hint
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:21:03 +0000 (16:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 23 Dec 2024 21:06:14 +0000 (13:06 -0800)
commit4de1a7ba4171db681691bd80506d0cf43c5cb46a
treeece787ba0a99da509a4006fac0ba89f57787c638
parent6853d23badd0f1852d3b711128924e2456d27634
xfs: apply rt extent alignment constraints to CoW extsize hint

The copy-on-write extent size hint is subject to the same alignment
constraints as the regular extent size hint.  Since we're in the process
of adding reflink (and therefore CoW) to the realtime device, we must
apply the same scattered rextsize alignment validation strategies to
both hints to deal with the possibility of rextsize changing.

Therefore, fix the inode validator to perform rextsize alignment checks
on regular realtime files, and to remove misaligned directory hints.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_inode_buf.c
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_ioctl.c