]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: apply rt extent alignment constraints to CoW extsize hint
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:22:31 +0000 (14:22 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 12 Aug 2024 11:53:51 +0000 (13:53 +0200)
commit6ac25792bb77d6b121a334ec2b627f402ded1c5c
treec0b5c872952a0f6d3111ff010063236e1593d770
parenta9980dbdd417b345adc05e44e28df82ce76508b8
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>
libxfs/logitem.c
libxfs/xfs_inode_buf.c