summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_rmap_btree.c
diff options
context:
space:
mode:
authorDarrick J. Wong2018-06-04 01:10:17 +0200
committerDarrick J. Wong2018-06-04 23:45:30 +0200
commit1f5c071d19aef379d0876929a598adcbc7f87986 (patch)
tree18002725de13f17f23d26cac7b9bf442bb26d09e /fs/xfs/libxfs/xfs_rmap_btree.c
parentxfs: btree lookup shouldn't ASSERT on empty btree nodes (diff)
downloadkernel-qcow2-linux-1f5c071d19aef379d0876929a598adcbc7f87986.tar.gz
kernel-qcow2-linux-1f5c071d19aef379d0876929a598adcbc7f87986.tar.xz
kernel-qcow2-linux-1f5c071d19aef379d0876929a598adcbc7f87986.zip
xfs: don't ASSERT on short form btree root pointer of zero
Don't ASSERT if the short form btree root pointer is zero. Now that we use xfs_verify_agbno to check all short form btree pointers, we'll let that log the error and pass it to the upper layers. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_rmap_btree.c')
-rw-r--r--fs/xfs/libxfs/xfs_rmap_btree.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_rmap_btree.c b/fs/xfs/libxfs/xfs_rmap_btree.c
index d756e0b84abf..78ab00beee93 100644
--- a/fs/xfs/libxfs/xfs_rmap_btree.c
+++ b/fs/xfs/libxfs/xfs_rmap_btree.c
@@ -234,7 +234,6 @@ xfs_rmapbt_init_ptr_from_cur(
struct xfs_agf *agf = XFS_BUF_TO_AGF(cur->bc_private.a.agbp);
ASSERT(cur->bc_private.a.agno == be32_to_cpu(agf->agf_seqno));
- ASSERT(agf->agf_roots[cur->bc_btnum] != 0);
ptr->s = agf->agf_roots[cur->bc_btnum];
}