On Wed, Jul 14, 2021 at 02:25:28PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > During a realtime grow operation, we run a single transaction for each > rt bitmap block added to the filesystem. This means that each step has > to be careful to increase sb_rblocks appropriately. > > Fix the integer overflow error in this calculation that can happen when > the extent size is very large. Found by running growfs to add a rt > volume to a filesystem formatted with a 1g rt extent size. > > Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> > --- > fs/xfs/xfs_rtalloc.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) Much easier to read now. Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx> -- Dave Chinner david@xxxxxxxxxxxxx