From: Darrick J. Wong Date: Sun, 3 Jun 2018 23:10:13 +0000 (-0700) Subject: xfs: don't assert when reporting on-disk corruption while loading btree X-Git-Tag: v5.15~8615^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17ba2cc7b5b9ee6a44baf5e169c8901f1f049ea8;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Dave Chinner --- diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index 7b0e2b5..368a117 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c @@ -1248,7 +1248,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);