]> git.baikalelectronics.ru Git - 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)
commit7656b856308721eb43486f4978a303787d6d0e47
tree221a049b3a6cdb0df2184578c0b8842e23e9bd30
parent936f122ffc22d1ed9e469319a635082958acb837
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