From 1b49337e259a429a21ac9803b4936324f4cb4ed9 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Thu, 28 Jun 2018 15:11:57 -0500 Subject: [PATCH] xfs: don't assert when reporting on-disk corruption while loading btree Source kernel commit: 17ba2cc7b5b9ee6a44baf5e169c8901f1f049ea8 Don't bother ASSERTing when we're already going to log and return the corruption status. Signed-off-by: Darrick J. Wong Reviewed-by: Dave Chinner Signed-off-by: Eric Sandeen --- libxfs/xfs_bmap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libxfs/xfs_bmap.c b/libxfs/xfs_bmap.c index a81f6b40b..1e8039d20 100644 --- a/libxfs/xfs_bmap.c +++ b/libxfs/xfs_bmap.c @@ -1239,7 +1239,6 @@ xfs_iread_extents( num_recs = xfs_btree_get_numrecs(block); if (unlikely(i + num_recs > nextents)) { - ASSERT(i + num_recs <= nextents); xfs_warn(ip->i_mount, "corrupt dinode %Lu, (btree extents).", (unsigned long long) ip->i_ino); -- 2.39.2