]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: apply rt extent alignment constraints to CoW extsize hint
authorDarrick J. Wong <djwong@kernel.org>
Mon, 23 Sep 2024 20:42:40 +0000 (13:42 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 Oct 2024 13:55:50 +0000 (15:55 +0200)
commit04a4fd8537dbd6f0521845b9643168be294e40b7
treeb56f2f6b1f5f85fc6d9bdd16d080e1941f0e23c2
parenta33de32ce87a01ea90d654695e4f302e5607a473
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>
fs/xfs/libxfs/xfs_inode_buf.c
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_ioctl.c