]> git.ipfire.org Git - people/arne_f/kernel.git/commit
xfs: detect misaligned rtinherit directory extent size hints
authorDarrick J. Wong <djwong@kernel.org>
Wed, 14 Jul 2021 16:03:41 +0000 (09:03 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 15 Jul 2021 16:58:42 +0000 (09:58 -0700)
commitb102a46ce16fd5550aed882c3c5b95f50da7992c
tree221a049b3a6cdb0df2184578c0b8842e23e9bd30
parent0925fecc557471b6f6a488c3590a275151210572
xfs: detect misaligned rtinherit directory extent size hints

If we encounter a directory that has been configured to pass on an
extent size hint to a new realtime file and the hint isn't an integer
multiple of the rt extent size, we should flag the hint for
administrative review because that is a misconfiguration (that other
parts of the kernel will fix automatically).

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/inode.c