]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: Replace ASSERT with XFS_IS_CORRUPT in xfs_rtcopy_summary()
authorNirjhar Roy (IBM) <nirjhar.roy.lists@gmail.com>
Wed, 4 Feb 2026 15:06:26 +0000 (20:36 +0530)
committerCarlos Maiolino <cem@kernel.org>
Wed, 25 Feb 2026 12:58:48 +0000 (13:58 +0100)
commit18c16f602a67782f5eb4b5ab9ba73350b9f711ec
tree3e6309ac2d1da2dbc3e9d2275819b84fade9700e
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
xfs: Replace ASSERT with XFS_IS_CORRUPT in xfs_rtcopy_summary()

Replace ASSERT(sum > 0) with an XFS_IS_CORRUPT() and place it just
after the call to xfs_rtget_summary() so that we don't end up using
an illegal value of sum.

Signed-off-by: Nirjhar Roy (IBM) <nirjhar.roy.lists@gmail.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_rtalloc.c