xfs: don't assert when reporting on-disk corruption while loading btree

Don't bother ASSERTing when we're already going to log and return the
corruption status.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
This commit is contained in:
Darrick J. Wong 2018-06-03 16:10:13 -07:00
parent aaacdd257f
commit 17ba2cc7b5

View File

@ -1248,7 +1248,6 @@ xfs_iread_extents(
num_recs = xfs_btree_get_numrecs(block); num_recs = xfs_btree_get_numrecs(block);
if (unlikely(i + num_recs > nextents)) { if (unlikely(i + num_recs > nextents)) {
ASSERT(i + num_recs <= nextents);
xfs_warn(ip->i_mount, xfs_warn(ip->i_mount,
"corrupt dinode %Lu, (btree extents).", "corrupt dinode %Lu, (btree extents).",
(unsigned long long) ip->i_ino); (unsigned long long) ip->i_ino);