Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1018392ybl; Wed, 21 Aug 2019 08:55:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvaiKVBZLlLqc4jA2gNDpnvOhuKa40Cx7cIZyUNOYfLbgM6pFmZdYUhqAJ3+FESA9D6MMF X-Received: by 2002:a17:90a:2525:: with SMTP id j34mr695191pje.11.1566402956454; Wed, 21 Aug 2019 08:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566402956; cv=none; d=google.com; s=arc-20160816; b=Gt5YV7xw+E+VqncjtiqFANVRYriRX9m3byyMs6KcHMvMfkvXko6j1Su4CZVG4mh6/L VLppVd3QfUnKrS3H9EJc42ZbuSALKcQ7oTjDg9TyP8/HK9DYBYNbA4UxWC0KdOCWwOye 1kaFK6ygaQBTK8GjUK3kZ016IHLuMkJJQbafo3DB7hPI8mDo7d0EQAnJUHgoxyQB0VJF Ax/NmpbS9JJK/coP3kkfgcrhMW2SrwdiORN2j6JigWsH0tpE4ew073CG1oeIajkexyTm r5Bt83pZB5x0HvBF0z4Lrl+25UUTeaD8qMb0C/KG58TqMj4wPPgoGg1j5ColxOSO9nu1 RHCw== 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=iTroMwNCz0Ok+97McvMjs1IUkl8f42sTIG9Axgs6bb8=; b=fnRV+PuwKWKOiEP5njS8WD2ScjRB79/LmvyYqGlbGw0he1aT6hbZPKCvkD25mhS+89 T4alSVEhdHWGig+lcFvV7h2uKJrALPf0gTM1jCIS+i0da7NjQeFVTm2i5lbNPYCCnHpY EnKYFftExUm7dSNOIeXH9rvJl9otA6pJTxKXHMdfkeAGjg/V4cS0vQYbeBPRAy8UawAb zvMhvbZfpNU+jYTAklmGtCRTxXA3SZG2ec3lJTisPdKdpRknkdHSj8f7JeyK8c8hn6iv L/PoUPykR5AbDzsh4C888ZILb1cTBpJZ0dDOAusnvzb3JySE5EfHGIDWiNahRJ1zuV7I HZrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aol.com header.s=a2048 header.b=tpWLkJHv; 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 s15si14259914pgm.413.2019.08.21.08.55.41; Wed, 21 Aug 2019 08:55:56 -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=tpWLkJHv; 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 S1727696AbfHUPwT (ORCPT + 99 others); Wed, 21 Aug 2019 11:52:19 -0400 Received: from sonic314-19.consmr.mail.gq1.yahoo.com ([98.137.69.82]:43637 "EHLO sonic314-19.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726762AbfHUPwT (ORCPT ); Wed, 21 Aug 2019 11:52:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1566402738; bh=iTroMwNCz0Ok+97McvMjs1IUkl8f42sTIG9Axgs6bb8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=tpWLkJHvp5wDL9lOErA+mK5oaMKtJi0s4i09AHBLHbf95o6w5ASKzs6O/9dKtvC5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n6ZI8dMTFSFwuJXkWOFeeMvrZZoqwIAElwRcU3cCwTpnjciR_CaV8B0pIZBi0U JLXSsUVCu.N11CuwbRm8e4gGzB6HWjfOYnCug0FQRfDilv7_88oLkudbdRPzhhQDW7Ij6GC_Y2yg OkpS9uO59tlPbq3Q0ZagSxx5CWzpxyVd1F1s4dzWHeonvvC_JfG3XwRVlUgKfArQRpyC73P20Abd huyiX.nUI1u7.Utfo8RTX6gt2hUaC6Sjr.B5bQoSeaN7jQlrY19Ipk3dkVC7vyfGwcItJ5ju4Yt1 Kk4Zo46YSt6jwUtRv6YvJapziBmjHQ46k0_yxhDqAeAalOdXtzDy37LDtSNt4R8_8fUnrvjiB9T0 a4FcIse013QugDOgvyGmVdHmMkj.PxauN4XPqdGHu04SEpWiHH53XDyMhz6BtXXWpjT7.6PZB_44 .MMyM1l6w1xYeWYq01w.7kcvqCFhcIifG4kT1Jz0eLh2FYh9wPepNH1IPMgNhgli_0gPGkaM5SVN yjKYGiCAbGpiQ9cR71Tzp7N7acQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Wed, 21 Aug 2019 15:52:18 +0000 Received: by smtp403.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 49078682cac6f4c277a5635d11b259eb; Wed, 21 Aug 2019 15:52:17 +0000 (UTC) Date: Wed, 21 Aug 2019 23:52:09 +0800 From: Gao Xiang To: "Tobin C. Harding" Cc: Gao Xiang , devel@driverdev.osuosl.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Joe Perches , linux-erofs@lists.ozlabs.org, Caitlyn Subject: Re: [PATCH 2/2] staging/erofs: Balanced braces around a few conditional statements. Message-ID: <20190821155205.GB5060@hsiangkao-HP-ZHAN-66-Pro-G1> References: <1566346700-28536-1-git-send-email-caitlynannefinn@gmail.com> <1566346700-28536-3-git-send-email-caitlynannefinn@gmail.com> <7aaca457a3d3feb951082d0659eec568a908971f.camel@perches.com> <20190821023122.GA159802@architecture4> <20190821151241.GF12461@ares> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190821151241.GF12461@ares> 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 Tobin, On Wed, Aug 21, 2019 at 08:13:35AM -0700, Tobin C. Harding wrote: > On Wed, Aug 21, 2019 at 10:31:22AM +0800, Gao Xiang wrote: > > On Tue, Aug 20, 2019 at 07:26:46PM -0700, Joe Perches wrote: > > > On Tue, 2019-08-20 at 20:18 -0400, Caitlyn wrote: > > > > Balanced braces to fix some checkpath warnings in inode.c and > > > > unzip_vle.c > > > [] > > > > diff --git a/drivers/staging/erofs/unzip_vle.c b/drivers/staging/erofs/unzip_vle.c > > > [] > > > > @@ -915,21 +915,21 @@ static int z_erofs_vle_unzip(struct super_block *sb, > > > > mutex_lock(&work->lock); > > > > nr_pages = work->nr_pages; > > > > > > > > - if (likely(nr_pages <= Z_EROFS_VLE_VMAP_ONSTACK_PAGES)) > > > > + if (likely(nr_pages <= Z_EROFS_VLE_VMAP_ONSTACK_PAGES)) { > > > > pages = pages_onstack; > > > > - else if (nr_pages <= Z_EROFS_VLE_VMAP_GLOBAL_PAGES && > > > > - mutex_trylock(&z_pagemap_global_lock)) > > > > + } else if (nr_pages <= Z_EROFS_VLE_VMAP_GLOBAL_PAGES && > > > > + mutex_trylock(&z_pagemap_global_lock)) { > > > > > > Extra space after tab > > > > There is actually balanced braces in linux-next. > > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/staging/erofs/zdata.c#n762 > > Which tree did these changes go in through please Gao? I believe > Caitlyn was working off of the staging-next branch of Greg's staging > tree. I don't think so, the reason is that unzip_vle.c was renamed to zdata.c months ago, see: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/tree/drivers/staging/erofs?h=staging-next so I think the patch is outdated when I first look at it. Thanks, Gao Xiang > > thanks, > Tobin.