]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: don't allow overly small or large realtime volumes
authorDarrick J. Wong <djwong@kernel.org>
Wed, 27 Mar 2024 00:12:19 +0000 (17:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:47 +0000 (15:28 +0200)
commit3f63080344326cd3ccfa0f3e9f461fe5b8f501c1
tree05601b416e965580e999dbd3bc9a0aa3f34f783b
parent89e511a745be66c2a232cb7858ac0246dc95de2d
xfs: don't allow overly small or large realtime volumes

commit e14293803f4e84eb23a417b462b56251033b5a66 upstream.

[backport: resolve merge conflicts due to refactoring rtbitmap/summary
macros and accessors]

Don't allow realtime volumes that are less than one rt extent long.
This has been broken across 4 LTS kernels with nobody noticing, so let's
just disable it.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Catherine Hoang <catherine.hoang@oracle.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_rtbitmap.h
fs/xfs/libxfs/xfs_sb.c
fs/xfs/xfs_rtalloc.c