projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaacdd2
)
xfs: don't assert when reporting on-disk corruption while loading btree
author
Darrick J. Wong
<darrick.wong@oracle.com>
Sun, 3 Jun 2018 23:10:13 +0000
(16:10 -0700)
committer
Darrick J. Wong
<darrick.wong@oracle.com>
Mon, 4 Jun 2018 21:45:29 +0000
(14:45 -0700)
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>
fs/xfs/libxfs/xfs_bmap.c
patch
|
blob
|
history
diff --git
a/fs/xfs/libxfs/xfs_bmap.c
b/fs/xfs/libxfs/xfs_bmap.c
index
7b0e2b5
..
368a117
100644
(file)
--- 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);