Skip to content

Commit aff4db5

Browse files
chandanrDarrick J. Wong
authored andcommitted
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 <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Chandan Babu R <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent f9fa871 commit aff4db5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/xfs/libxfs/xfs_bmap.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3699,7 +3699,6 @@ xfs_bmap_btalloc(
36993699
ap->blkno = args.fsbno;
37003700
if (ap->tp->t_firstblock == NULLFSBLOCK)
37013701
ap->tp->t_firstblock = args.fsbno;
3702-
ASSERT(nullfb || fb_agno <= args.agno);
37033702
ap->length = args.len;
37043703
/*
37053704
* If the extent size hint is active, we tried to round the

0 commit comments

Comments
 (0)