提交 aff4db57 编写于 作者: C Chandan Babu R 提交者: Darrick J. Wong

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: NAllison Henderson <allison.henderson@oracle.com>
Reviewed-by: NDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: NChandan Babu R <chandanrlinux@gmail.com>
Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
上级 f9fa8716
...@@ -3699,7 +3699,6 @@ xfs_bmap_btalloc( ...@@ -3699,7 +3699,6 @@ xfs_bmap_btalloc(
ap->blkno = args.fsbno; ap->blkno = args.fsbno;
if (ap->tp->t_firstblock == NULLFSBLOCK) if (ap->tp->t_firstblock == NULLFSBLOCK)
ap->tp->t_firstblock = args.fsbno; ap->tp->t_firstblock = args.fsbno;
ASSERT(nullfb || fb_agno <= args.agno);
ap->length = args.len; ap->length = args.len;
/* /*
* If the extent size hint is active, we tried to round the * If the extent size hint is active, we tried to round the
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册