Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp277110ybl; Tue, 20 Aug 2019 19:58:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvm9G8IwzDgdxYQuCVqgE4aufe+MHSV4VouzlECQjE9aRw4yex8eGtNCMMHoWnV0coidbf X-Received: by 2002:a17:90a:b016:: with SMTP id x22mr3251309pjq.116.1566356297657; Tue, 20 Aug 2019 19:58:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566356297; cv=none; d=google.com; s=arc-20160816; b=RTGKoRziIViq4XXAOKPKUhaKELysvzSn0giWxnQ5mJbyh4gC0hxnHWZlKQ9wV5r2Or rkWYsNr7ieSF7HgIfOynaEkVvFN27VxUP50TN+LcmmOxqSjtiMzAiPLU+HzPv2tNMqFO pYumu25uGKViOcstuk0/Jag+tsme4LRVUJin8DUENCwSITN6OEcWHdAWNiGS5hksz1Jo OuxOaBpALFrqlCAr7MD6ChL+opwhd8+2EQECVqCgEJOaI9eZ+OsxR/mKzgyY4JtqvGNS dzeuM1tDEWJgBXmcJxpdZnCN2OryT8NnC0Ti6Zu/HsLjAAV4P581JxXF5sz3VzQgHaXW bdOg== 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=ad/c0ugYUvR3RcP5KTPOdhpbuEKofGGDZQmZ1l/7IPk=; b=KVuR7VxltYjSSrUtAGXEycGtYZ7SB6LQsWBia6P+SLhc4CssvNZPJB55g5z7J7kBgZ sBd90rvlRm78TpJUEf6M3FhZTrlYl7qrTzmU1QBX3HNhaToY1FL4TdNw/HFW4dwm0/z3 +nIr5bYJ7ke5QkE6/naJFzoXru8KfMvWWbAakXj+UaFREwecLZU0mjHhuZ6eKltsTAo6 zkTP3+D0XFUietcYOpMsqRjn7e8UOflxp/qyeJXlA+9QffEmK927A3kHl05zqvByYeu3 lW00jmcyawZ9AvM6eOL3ihUVsL+VMWd646ndstgbYMSIQUZ3RY0f2z+KwfHm/UPeJZ+6 5uGg== 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 b16si13647522pgh.296.2019.08.20.19.57.50; Tue, 20 Aug 2019 19:58:17 -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 S1726741AbfHUCcI (ORCPT + 99 others); Tue, 20 Aug 2019 22:32:08 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:3098 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726512AbfHUCcI (ORCPT ); Tue, 20 Aug 2019 22:32:08 -0400 Received: from DGGEMM406-HUB.china.huawei.com (unknown [172.30.72.57]) by Forcepoint Email with ESMTP id AAA6243E135E022D3262; Wed, 21 Aug 2019 10:32:03 +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; Wed, 21 Aug 2019 10:32:03 +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; Wed, 21 Aug 2019 10:32:02 +0800 Date: Wed, 21 Aug 2019 10:31:22 +0800 From: Gao Xiang To: Joe Perches CC: Caitlyn , Chao Yu , "Greg Kroah-Hartman" , "Tobin C . Harding" , , , Subject: Re: [PATCH 2/2] staging/erofs: Balanced braces around a few conditional statements. Message-ID: <20190821023122.GA159802@architecture4> References: <1566346700-28536-1-git-send-email-caitlynannefinn@gmail.com> <1566346700-28536-3-git-send-email-caitlynannefinn@gmail.com> <7aaca457a3d3feb951082d0659eec568a908971f.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <7aaca457a3d3feb951082d0659eec568a908971f.camel@perches.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [10.140.130.215] X-ClientProxiedBy: dggeme713-chm.china.huawei.com (10.1.199.109) 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 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 > > > pages = z_pagemap_global; > > - else { > > + } else { > > repeat: > > pages = kvmalloc_array(nr_pages, sizeof(struct page *), > > GFP_KERNEL); > > > > /* fallback to global pagemap for the lowmem scenario */ > > if (unlikely(!pages)) { > > - if (nr_pages > Z_EROFS_VLE_VMAP_GLOBAL_PAGES) > > + if (nr_pages > Z_EROFS_VLE_VMAP_GLOBAL_PAGES) { > > goto repeat; > > - else { > > + } else { > > Unnecessary else There is not the "goto repeat" in linux-next anymore. https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/staging/erofs/zdata.c#n765 Thanks, Gao Xiang > > > mutex_lock(&z_pagemap_global_lock); > > pages = z_pagemap_global; > > } > >