From: Chandan Babu R Date: Sat, 23 Jan 2021 00:48:16 +0000 (-0800) Subject: xfs: Remove duplicate assert statement in xfs_bmap_btalloc() X-Git-Tag: accepted/tizen/unified/20230118.172025~7707^2~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aff4db57d510082f11194ca915d8101463c92d46;p=platform%2Fkernel%2Flinux-rpi.git xfs: Remove duplicate assert statement in xfs_bmap_btalloc() The check for verifying if the allocated extent is from an AG whose index is greater than or equal to that of tp->t_firstblock is already done a couple of statements earlier in the same function. Hence this commit removes the redundant assert statement. Reviewed-by: Allison Henderson Reviewed-by: Darrick J. Wong Signed-off-by: Chandan Babu R Signed-off-by: Darrick J. Wong --- diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index 8ebe5f1..0b15b1f 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c @@ -3699,7 +3699,6 @@ xfs_bmap_btalloc( ap->blkno = args.fsbno; if (ap->tp->t_firstblock == NULLFSBLOCK) ap->tp->t_firstblock = args.fsbno; - ASSERT(nullfb || fb_agno <= args.agno); ap->length = args.len; /* * If the extent size hint is active, we tried to round the