Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp424450ybl; Fri, 30 Aug 2019 01:45:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtQ2TSjPQwrhTSgHEBdiFEA7d9/7dHEgBWqbzmo1aX2H22Od5Nme1rkG3iYeSWjSF1goQs X-Received: by 2002:a17:90a:23d0:: with SMTP id g74mr14974922pje.115.1567154751123; Fri, 30 Aug 2019 01:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567154751; cv=none; d=google.com; s=arc-20160816; b=mgXLgjqd7OGsqaBALyS7utvU9+mFE6a7qRIw0iTaziGwRvNton+3vLgAyIseg5cKqB 8jF8aBxDYQ+xP3/Jpcj95qIaHQ2rRm7jvxEzbBSAcYrSPTpzunyFa6ijAT/wbpLnoNV2 p0ZIPMEgkvFx6oGWuGPFykD3SDIXC+2qUtMIljEGK+2yWtd6M9lF7YsPAWL0LUkQ0Qlx AsyVI1belV079i+EOPre/QiRYTg9k6Cc94ItiALneNoz9OeL9mkQj4RPfUddeR08C+/S k8GKkXkbaT2Nxp9DqFD67udMgxzNLkzIVeXYHoo5IlX0RuXqpvnWrBvUQUzkPUiEV9nP A+qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=zf+NHIh5qYKuTYdzJyRWo3JySU5fFumx7/Txy49KvdA=; b=eMqGpyJR6cQMY2bSNSI6t8YpsTKgcILYHRWtxI30FBVIrs+gEhzPNBbFz2O0hBRfa3 bsbUmYCjUvIf0nTE99T+fZU7uO98rJD/pAbmSlMa1yJdx1VrTKoP94GhNRy9iyIZ4hY1 9gAQI1goZ5b+yNg3BuQBFjZRFzdOEeDzson3PJoNJfWiJIdqaccTSDYz/jaIwK6t6PNt eNjyn+EFyqtejIqMf6NdlpAqPrgnhvcM2AwyyjD+JJCcYd/WbzDDCdLQEa02yIq1EeXc Sx3bo/yvNRFXRgNvIbsyE0QPiJYkYo5ipT4A9AqZEH6T4hL+u646TLXAhxYvl5xYhuYE FU7Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n9si3993804pgq.240.2019.08.30.01.45.35; Fri, 30 Aug 2019 01:45:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728058AbfH3Io2 (ORCPT + 99 others); Fri, 30 Aug 2019 04:44:28 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:3542 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727236AbfH3Io2 (ORCPT ); Fri, 30 Aug 2019 04:44:28 -0400 Received: from DGGEMM404-HUB.china.huawei.com (unknown [172.30.72.53]) by Forcepoint Email with ESMTP id B098D2181E2B1D99C5AA; Fri, 30 Aug 2019 16:44:22 +0800 (CST) Received: from dggeme762-chm.china.huawei.com (10.3.19.108) by DGGEMM404-HUB.china.huawei.com (10.3.20.212) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 30 Aug 2019 16:44:22 +0800 Received: from architecture4 (10.140.130.215) by dggeme762-chm.china.huawei.com (10.3.19.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 30 Aug 2019 16:44:21 +0800 Date: Fri, 30 Aug 2019 16:43:33 +0800 From: Gao Xiang To: Dan Carpenter CC: , Christoph Hellwig , Valdis =?gbk?Q?Kl=A8=A5tnieks?= , Greg Kroah-Hartman , , Sasha Levin , , "OGAWA Hirofumi" Subject: Re: [PATCH] staging: exfat: add exfat filesystem code to staging Message-ID: <20190830084333.GA193084@architecture4> References: <20190829094136.GA28643@infradead.org> <20190829095019.GA13557@kroah.com> <20190829103749.GA13661@infradead.org> <20190829111810.GA23393@kroah.com> <20190829151144.GJ23584@kadam> <20190829152757.GA125003@architecture4> <20190829154346.GK23584@kadam> <20190829155127.GA136563@architecture4> <20190829160441.GA141079@architecture4> <20190830083445.GL23584@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20190830083445.GL23584@kadam> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [10.140.130.215] X-ClientProxiedBy: dggeme704-chm.china.huawei.com (10.1.199.100) To dggeme762-chm.china.huawei.com (10.3.19.108) X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dan, On Fri, Aug 30, 2019 at 11:34:45AM +0300, Dan Carpenter wrote: > On Fri, Aug 30, 2019 at 12:04:41AM +0800, Gao Xiang wrote: > > Anyway, I'm fine to delete them all if you like, but I think majority of these > > are meaningful. > > > > data.c- /* page is already locked */ > > data.c- DBG_BUGON(PageUptodate(page)); > > data.c- > > data.c: if (unlikely(err)) > > data.c- SetPageError(page); > > data.c- else > > data.c- SetPageUptodate(page); > > If we cared about speed here then we would delete the DBG_BUGON() check > because that's going to be expensive. The likely/unlikely annotations > should be used in places a reasonable person thinks it will make a > difference to benchmarks. DBG_BUGON will be a no-op ((void)x) in non-debugging mode, I discussed related stuffs with Greg many months before [1] and other filesystems also have similar functions... p.s. I think we come to an agreement here... I killed all unlikely/likely. [1] http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-November/128951.html sorry about no lore here. Thanks, Gao Xiang > > regards, > dan carpenter >