summaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-06-04 01:10:13 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2018-06-04 23:45:29 +0200
commit17ba2cc7b5b9ee6a44baf5e169c8901f1f049ea8 (patch)
tree08682bfaba14594a0800c478e5c6a2c2b609278e /fs/xfs
parentxfs: don't forbid setting dax flag on directories if device doesn't dax (diff)
downloadlinux-17ba2cc7b5b9ee6a44baf5e169c8901f1f049ea8.tar.xz
linux-17ba2cc7b5b9ee6a44baf5e169c8901f1f049ea8.zip
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>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/libxfs/xfs_bmap.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c
index 7b0e2b551e23..368a1179f0ff 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);