]> 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>
Tue, 9 Jan 2024 17:40:28 +0000 (09:40 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 10 Apr 2024 00:21:47 +0000 (17:21 -0700)
commit23e31d6ef8ef24f6819921d2acaaa9d3829fdf78
tree6f012883502ef4b97e2bdfa1f17c69fd38c4841a
parent89697a64e9cb86debaa7142f738fe0cffe01ae33
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