From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ipmail06.adl6.internode.on.net ([150.101.137.145]:15275 "EHLO ipmail06.adl6.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751132AbeFCXtc (ORCPT ); Sun, 3 Jun 2018 19:49:32 -0400 Date: Mon, 4 Jun 2018 09:49:30 +1000 From: Dave Chinner Subject: Re: [PATCH 03/10] xfs: don't assert when on-disk btree pointers are garbage Message-ID: <20180603234930.GZ10363@dastard> References: <152806814253.18187.4009340462930782844.stgit@magnolia> <152806816098.18187.494409176600320204.stgit@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <152806816098.18187.494409176600320204.stgit@magnolia> Sender: linux-xfs-owner@vger.kernel.org List-ID: List-Id: xfs To: "Darrick J. Wong" Cc: linux-xfs@vger.kernel.org On Sun, Jun 03, 2018 at 04:22:41PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong > > Don't ASSERT when we encounter bad on-disk btree pointers in the debug > check functions. Log the error to leave breadcrumbs and let the upper > layers deal with it. > > Signed-off-by: Darrick J. Wong > --- > fs/xfs/libxfs/xfs_btree.c | 23 ++++++++++++++++------- > 1 file changed, 16 insertions(+), 7 deletions(-) Isn't this the same checks that were in the last patch? Can you lift xfs_btree_check_ptr() out of the debug only code, and make the previous patch call it? Cheers, Dave. -- Dave Chinner david@fromorbit.com