Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1222399ybi; Sat, 8 Jun 2019 05:14:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqynEvOKGU7DDWthiBYNFYo7eYJiyD//KSMs8/d3dVzgH/z0CHPIatCZYySnKm5GBG1qbz0q X-Received: by 2002:a17:902:b497:: with SMTP id y23mr36650248plr.309.1559996089577; Sat, 08 Jun 2019 05:14:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559996089; cv=none; d=google.com; s=arc-20160816; b=HdO2UY5MEc6JrafeE8G6gTZnhhFm84cnk3mHa2wS9lTbp19Wx71iMFS3/IpcIwCL2Z YhBDolPZ81kMsuL9nanoyUaaff2Nj+BkHi+/SuB5ntZEb5JKxD7EpybgMhf9/fiGGUom tapT+iqeUlxTuwQtnCnQ1o6N1DApHSkrHtSUlHU7qAV0A3jmI62DqrvXZhNLHWiQrvbD /MUFUZ4SJC9/KYh2OdShqfr4PQdWsgl1XsxXizKmsM1Rl4V272nY8dUZZmAmiFvRFu+R ziTP/07968lvrEHXxxo/wylFhE0c20gsRDn0+XQeYoNLVyYdb6MHZ3sbem2Cdu3uafST Fa2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject:dkim-signature; bh=KvReJB3bNC8VOtsMTPigIMkLct1KV+hCCuAue4hnO8c=; b=0Ljb2UcLvwiBf/bFacJ+ZTt4FL/IEVGxiwAr3T4UrN6hZzMUxKEDAVIUWTN+i7tIPJ xRLW/RsPiommerpHyuDRsdLG9bytLYUZDIZ99ejk+Z474CVRXqd5aQzmC9SmN4asWsg4 xaEX+mcNIocSIMGEB9twCCgfyeiZZ72iTjRTc9zSAONHVnrmvWlS9pbUnG5tqr61qY2J gTV3ba0EJ3vKm3Cl+IIjGGjhyC/aUwoHwPNWhF90D+PvECvcMnDaUIBERlonR/FullzC 2VsYp7GDssldo1UegOmPh+m1PymrNBxFOvtohFClOOYSm/z7TQEsrxjJahfQ5Qosz9xT 2lzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b=bDMcOZIr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=aol.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1si4584370pfb.177.2019.06.08.05.14.33; Sat, 08 Jun 2019 05:14:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b=bDMcOZIr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=aol.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727307AbfFHMLq (ORCPT + 99 others); Sat, 8 Jun 2019 08:11:46 -0400 Received: from sonic303-20.consmr.mail.ir2.yahoo.com ([77.238.178.201]:45749 "EHLO sonic303-20.consmr.mail.ir2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727191AbfFHMLq (ORCPT ); Sat, 8 Jun 2019 08:11:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1559995904; bh=KvReJB3bNC8VOtsMTPigIMkLct1KV+hCCuAue4hnO8c=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=bDMcOZIrahj+HBbU0JUUVnjtQSXN2ZHGV8PEzvyrcG49h/sOSRSMMdA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_ttSrlRCWo5kwE3Jxa8bJeZlUnxNwoJ7HWLtVNSAUTdI234K QkbM.1JvSGNJfUlfGzTUdGz7_.J5k4PLz_QyRqQSncIUqHPn4rEpJkyf9Nzv9zoWiBDe8H5Jx3KT S41z3H7zoR8Js.zfLC.IspsGDq_4xruXJ_jf3b4o.1g0zgLvr7y55hS56P2pgT7_WXDE3JysYLfk SOdspW1bbAVL0p0NMIUhGZZ5ng9U8tz3zYjFpQYaPpAjhL4k4daPWqA2c5TyytXSRmyugsSpgLBZ VOePAQT1e2f3UBTw99XA6iWc0utDP.HAx3T05MUPKNSEUoopZHR63YIGswu6HOGiNjaMYMQp9rMK qGChP3eu.JVbr.ETsA5nGLIeQmVe0nkSm7_wnSRVOZHSFmA3w5GY8_RuS0gp24ejJZOJFsgZ7Rly Wa709w3kvUplTPyc.5MffCn20x4I4Vb6OMfTEeSE4F6A- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ir2.yahoo.com with HTTP; Sat, 8 Jun 2019 12:11:44 +0000 Received: from 125.120.226.196 (EHLO [192.168.0.101]) ([125.120.226.196]) by smtp415.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID aaa314d510ea14c03aa85b21185d2f79; Sat, 08 Jun 2019 12:11:43 +0000 (UTC) Subject: Re: [PATCH] staging: erofs: make use of DBG_BUGON To: Hariprasad Kelam References: <20190608094918.GA11605@hari-Inspiron-1545> Cc: Gao Xiang , Chao Yu , Greg Kroah-Hartman , linux-erofs@lists.ozlabs.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org From: Gao Xiang Message-ID: <0b6db3cd-25ec-49b2-93e0-31d0677507c1@aol.com> Date: Sat, 8 Jun 2019 20:11:36 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190608094918.GA11605@hari-Inspiron-1545> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/6/8 ??????5:49, Hariprasad Kelam wrote: > DBG_BUGON is introduced and it could only crash when EROFS_FS_DEBUG > (EROFS developping feature) is on. > replace BUG_ON with DBG_BUGON. > > Signed-off-by: Hariprasad Kelam Reviewed-by: Gao Xiang Thanks, Gao Xiang > --- > drivers/staging/erofs/unzip_vle.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/erofs/unzip_vle.h b/drivers/staging/erofs/unzip_vle.h > index 517e5ce..902e67d 100644 > --- a/drivers/staging/erofs/unzip_vle.h > +++ b/drivers/staging/erofs/unzip_vle.h > @@ -147,7 +147,7 @@ static inline unsigned z_erofs_onlinepage_index(struct page *page) > { > union z_erofs_onlinepage_converter u; > > - BUG_ON(!PagePrivate(page)); > + DBG_BUGON(!PagePrivate(page)); > u.v = &page_private(page); > > return atomic_read(u.o) >> Z_EROFS_ONLINEPAGE_INDEX_SHIFT; > @@ -179,7 +179,7 @@ static inline void z_erofs_onlinepage_fixup(struct page *page, > if (!index) > return; > > - BUG_ON(id != index); > + DBG_BUGON(id != index); > } > > v = (index << Z_EROFS_ONLINEPAGE_INDEX_SHIFT) | > @@ -193,7 +193,7 @@ static inline void z_erofs_onlinepage_endio(struct page *page) > union z_erofs_onlinepage_converter u; > unsigned v; > > - BUG_ON(!PagePrivate(page)); > + DBG_BUGON(!PagePrivate(page)); > u.v = &page_private(page); > > v = atomic_dec_return(u.o); >