Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2583355ybl; Thu, 29 Aug 2019 10:04:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqy73it3Pv2gRyckkWywxoiqwM+X2epZgjB8hbYrBjB4UKcmUY6/cp6+rsRAic9R7vV7tQZF X-Received: by 2002:a63:9d43:: with SMTP id i64mr9309762pgd.306.1567098298343; Thu, 29 Aug 2019 10:04:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567098298; cv=none; d=google.com; s=arc-20160816; b=J6tO40gCBM3irPW4J++oLaUdDYf6+UT8E0GR1rS2Wy3tGWKKCFndiwC/M4A6e91Rtv sIuCd3N1VaERlVp/BSjqVb9f0bZTK9Z0ekVeiXL4YZ7E3ylW3WBhHhsCZ50VqkaUnqN6 U7yprfb93a40n88pyIs8Nn3LOcWXwa+QAll8h+CmE0pRvlTUk6QjKyjVRYEcT/4Nz6Uj HW0lr5/S0kSFjbjdc/0TOp/Pi65pZz7lnaRwxngx/yebL4/EQ2ZnsUPjm8oznj5FhaLe ZfWbL2KgzpolvW3eMlLkN2HAe1uxps3AFsPu2MzgZPpQoyCXCIprfg28Xtz4RcgFDFpB WeBQ== 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=FIXrzglXa4ROFKp9BrdtPWZX+zHtdV73tbXqlZYN87g=; b=DhtQg8YqOSNs5efLjUvvDmLPTqKzqi7pG6rLFDRg9LSNNY/bojK3K/Nvil2IQFD41O bR1h9HyiYP0XoqJuDC6z6eD9lXg3g7Ok1r6DodUm7t6RGHt5EVJtSIVrUIJTCbDRDpFe rEilfm8WBH4iUHYrPjcNHgN1f7xmuNDNE6pdN/yi4M50o1GmBoNx3+vvbEdiPlGGpaw7 F1gvI5REyWHy38x8FqDPsSiRTZ3EC5yDvl4JDOuu4GzGhpgIR2WmZ5sbOa6PfuUvVGhp 8ReMek4lhtSyvZfp+XKNWSMiqhVrGrGWmW8kVaEy+B2gXTj0bEY4SjHYZHC/b6PsgJZV zgUQ== 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 t4si2498060plb.366.2019.08.29.10.04.41; Thu, 29 Aug 2019 10:04:58 -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 S1727891AbfH2RDS (ORCPT + 99 others); Thu, 29 Aug 2019 13:03:18 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:3982 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727735AbfH2RDS (ORCPT ); Thu, 29 Aug 2019 13:03:18 -0400 Received: from DGGEMM406-HUB.china.huawei.com (unknown [172.30.72.57]) by Forcepoint Email with ESMTP id 4EE0AB0F9047B018262E; Fri, 30 Aug 2019 01:03:13 +0800 (CST) Received: from dggeme762-chm.china.huawei.com (10.3.19.108) by DGGEMM406-HUB.china.huawei.com (10.3.20.214) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 30 Aug 2019 01:03:12 +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 01:03:12 +0800 Date: Fri, 30 Aug 2019 01:02:25 +0800 From: Gao Xiang To: Joe Perches CC: Dan Carpenter , "devel@driverdev.osuosl.org" , Sasha Levin , Valdis =?gbk?Q?Kl=A8=A5tnieks?= , Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , Christoph Hellwig , "linux-fsdevel@vger.kernel.org" , "OGAWA Hirofumi" Subject: Re: [PATCH] staging: exfat: add exfat filesystem code to staging Message-ID: <20190829170225.GA215901@architecture4> References: <20190829063955.GA30193@kroah.com> <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> <20190829164442.GA203852@architecture4> <74c4784319b40deabfbaea92468f7e3ef44f1c96.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <74c4784319b40deabfbaea92468f7e3ef44f1c96.camel@perches.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [10.140.130.215] X-ClientProxiedBy: dggeme715-chm.china.huawei.com (10.1.199.111) 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 Joe, On Thu, Aug 29, 2019 at 09:59:21AM -0700, Joe Perches wrote: > On Fri, 2019-08-30 at 00:44 +0800, Gao Xiang wrote: > > Hi Dan, > > > > On Thu, Aug 29, 2019 at 11:43:46PM +0800, Dan Carpenter wrote: > > > > p.s. There are 2947 (un)likely places in fs/ directory. > > > > > > I was complaining about you adding new pointless ones, not existing > > > ones. The likely/unlikely annotations are supposed to be functional and > > > not decorative. I explained this very clearly. > > > > > > Probably most of the annotations in fs/ are wrong but they are also > > > harmless except for the slight messiness. However there are definitely > > > some which are important so removing them all isn't a good idea. > > > > > > > If you like, I will delete them all. > > > > > > But for erofs, I don't think that any of the likely/unlikely calls have > > > been thought about so I'm fine with removing all of them in one go. > > > > Anyway, I have removed them all in > > https://lore.kernel.org/r/20190829163827.203274-1-gaoxiang25@huawei.com/ > > > > Does it look good to you? > > Unrelated bikeshed from a trivial look: > > There's a block there that looks like: > > diff --git a/fs/erofs/data.c b/fs/erofs/data.c > [] > @@ -70,7 +70,7 @@ struct page *__erofs_get_meta_page(struct super_block *sb, > } > > err = bio_add_page(bio, page, PAGE_SIZE, 0); > - if (unlikely(err != PAGE_SIZE)) { > + if (err != PAGE_SIZE) { > err = -EFAULT; > goto err_out; > } > > The initial assignment to err is odd as it's not > actually an error value -E but a int size > from a unsigned int len. > > Here the return is either 0 or PAGE_SIZE. > > This would be more legible to me as: > > if (bio_add_page(bio, page, PAGE_SIZE, 0) != PAGE_SIZE) { > err = -EFAULT; > goto err_out; > } Okay, that is more reasonable, I will update the original patch as you suggested. Thanks, Gao Xiang > >