Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp637478ybl; Fri, 30 Aug 2019 05:06:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxk/2638KcXAtzRB5dMTkA4xDQYm7gk/6Ce60S6TD+4lRRbcntmLQRLM4rNLAgjt0HL1HPJ X-Received: by 2002:a17:902:6843:: with SMTP id f3mr14849279pln.97.1567166771579; Fri, 30 Aug 2019 05:06:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567166771; cv=none; d=google.com; s=arc-20160816; b=yjTt7wBxR4l2HNkjzYofuak/yN3A8rPOMJfFEHTMsPM6uMjqtbz+mA30pMeid4CC0/ iPFKPayyXbWndc3Ue1Fd0YmDqWt/PwdZKz0jiXQnn2Cb3YiXgIauPOCdtULmNj3YlIr9 SNYZ1vcpldmpKZIQ2Svkm4WwD0cf23a41YP0fZ75jV0dcsaF8sx4ncnzrV1v0M2ZRKF7 UDJizEdaMutcffylwi9XRNzutr9gq+KBYBUTXnlIw0h0okaB+/jnsUJFlzAxKVYL5BDQ 5HX46h8ZUtcigR02RrIDSqWIrjhDHJHIs2P+CIrFsoP1RvAsMkIy5FFGrELpoh9xsR/T sskw== 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:dkim-signature; bh=3dnpKGsS+OuKzlzxbOlDQHhsBySeMNk6jgiZI/YORp4=; b=pNMg+hRFpQ/quXE/195TQohi5a1AQvKcWBfPB/PbCvfGhO9l1cqqSkQgcn+FLSMh9D +7LCsu04MGKO/5ApSkhC3c93h2kW5CU/2Y34Lumqmb2YLkdtF0k/D6QuVviI9qzcJO2G XzAbFkmaLeuoWDp6w2GYLZSkjyoEJuQTFfHqSj1mYkKOwc+qFdVegNuOBjXDG8PPtyP9 ciWb7EVGd90cID0BbHhfvnwvrNrJPPLhHie69mDLMElQPD8sfr4Hqm9IOiGybr4LveGp eNzkTsOzn7ZCCl1JuP9z2f4KiZhPNi8utCt7vU/ATZ+BegmbCuSqoLz6m7hTvqBnu09x aRmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b=o0X8nnr3; 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 y7si4454944plr.408.2019.08.30.05.05.54; Fri, 30 Aug 2019 05:06:11 -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=o0X8nnr3; 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 S1727718AbfH3MEj (ORCPT + 99 others); Fri, 30 Aug 2019 08:04:39 -0400 Received: from sonic312-23.consmr.mail.gq1.yahoo.com ([98.137.69.204]:39667 "EHLO sonic312-23.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727386AbfH3MEi (ORCPT ); Fri, 30 Aug 2019 08:04:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1567166677; bh=3dnpKGsS+OuKzlzxbOlDQHhsBySeMNk6jgiZI/YORp4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=o0X8nnr3IP6v52GpCtlks05j1+LcaEgdmvj6zrHlVWy/L+ZM6T/Tbp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JMTvSG8aN5WLqReOJeX1h U1_uF1X0gbbMVgW8XR8SmTZPl5fCaQMHsqRqsP7neiUSTV13jebXyEOD7qmKqo_FNp1E.R4lNFXC lZIo0VUaUOdBNHslkLHo5yIsUxiWBNwSmOI8ANqTIsAgBeFk0WNbuDZTMTBM4KmtVLHYDH.NF0ok XWDMCaoWuAOmovgPYnPY2PoghauA3q2QLP3HTIINQUa9JSEAMeD1jyOwmprcRXlx2NkE1nrDAMaD pSLekSp27R7uOGI7lN6OP6qSol.yndelbJJTZ9UPsd61zuiyE79fx8M2MyXi2srBYzJ1kgRtAOJ. p.CGDu3LXRrQw0mvXU8D2ax5PfJy8wy0C9e.Jx4.tnROvSVm0CPbKZ_3H6ZzlatvgwcxfZYiqUKS goASo8RToc2WLr6CbFmg8nmtRt9PxupcSNrXbdEjOVeRwO.HCi7RJQcgLYQu7bmieAjP6q1GbCrg cEqdErOMY9iUJkSRoqdKzkfr3Z6vi7hs- Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Fri, 30 Aug 2019 12:04:37 +0000 Received: by smtp428.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 7ab41f8c227fcd099f8ed0410cccad50; Fri, 30 Aug 2019 12:04:33 +0000 (UTC) Date: Fri, 30 Aug 2019 20:04:20 +0800 From: Gao Xiang To: Dan Carpenter Cc: Gao Xiang , devel@driverdev.osuosl.org, Christoph Hellwig , Valdis =?gbk?Q?Kl=A8=A5tnieks?= , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Sasha Levin , linux-fsdevel@vger.kernel.org, OGAWA Hirofumi Subject: Re: [PATCH] staging: exfat: add exfat filesystem code to staging Message-ID: <20190830120419.GB10981@hsiangkao-HP-ZHAN-66-Pro-G1> References: <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> <20190830084333.GA193084@architecture4> <20190830112612.GF8372@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190830112612.GF8372@kadam> User-Agent: Mutt/1.9.4 (2018-02-28) 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 02:26:12PM +0300, Dan Carpenter wrote: > On Fri, Aug 30, 2019 at 04:43:33PM +0800, Gao Xiang wrote: > > 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, > > It expands to: > > ((void)PageUptodate(page)); > > Calling PageUptodate() doesn't do anything, but it isn't free. The > time it takes to do that function call completely negates any speed up > from using likely/unlikely. > > I'm really not trying to be a jerk... You are right, I recalled that PageUptodate is not as simple as it implys. Yes, those are all removed now... I am ok with that, thanks for your suggestion :) Thanks, Gao Xiang > > regards, > dan carpenter >