]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: Remove duplicate assert statement in xfs_bmap_btalloc()
authorChandan Babu R <chandanrlinux@gmail.com>
Mon, 5 Apr 2021 22:32:52 +0000 (18:32 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 5 Apr 2021 22:32:52 +0000 (18:32 -0400)
Source kernel commit: aff4db57d510082f11194ca915d8101463c92d46

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

Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Chandan Babu R <chandanrlinux@gmail.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_bmap.c

index e9c9f45100df0a94b48249ef3b935991b5ce538f..836e5a5e2fd17bd78cf95c440146abae3b1af359 100644 (file)
@@ -3692,7 +3692,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