Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2434425pxp; Mon, 21 Mar 2022 20:19:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTMHSZux9HHtRnmJLa0va7gauMOrNe9qsZFM6snpwzw5fnRmJsMv0feYEx1fLw4DakY9ge X-Received: by 2002:a17:90b:3b81:b0:1c6:f22c:60f3 with SMTP id pc1-20020a17090b3b8100b001c6f22c60f3mr2528395pjb.109.1647919188908; Mon, 21 Mar 2022 20:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647919188; cv=none; d=google.com; s=arc-20160816; b=jghdbqMM+j+EfaXaDPGUMY73+Qc5UZyf9oWy+dGA60CrwgGa3JnLM8pI04tghmFsnj 0EIKDkSoquIodyCi+NUEvQbmUIhEQ5vtE5m4LQ5GPFjEjGgStICi/nXh1d2VVoExHegm PG4qjZDfHRHKIjgQ7BuNidS5EYWehYoRc1vtAt+6fpwDhWJ6DrrAsAAc9elQvLKUTvpc 5uXuZE8QIvkiH7Mm+ta1TSKz3XnucEJAFq9K2q+ln+gwHLAWfpjxikGt1kacB1lRsVEg RkM3km/TNt4pMHMY15Kr8pXGLlIF3wNRRJbTNrBikh8iSdVo84JCvmT85M70epgqB2TR VlPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=q/UktwXovqRuUQwt7RunNjmVfMlEugJ5klFiPT+nSBk=; b=Jz7giuG8cP2N3lZpELYIPkI6OfdLJUKcI4Dgl9cL6jAomkKCH1BJ1CvitFo8zbaxwX y6uwgxxKmt9goF9v2hWlV91+Ys3r7NJKbnYfiBX1XEGjQUx56neh6Qo378pnwabbv6tz 0frxpSrf/i2hM7xPj/gpfbZYUJYLiTzCUNiaygeVMAKTD/jem3aOvqxtAnl3yigSAL55 ngKb873u9nHyiL1zG21je8MZO/rfQqNSvr1ScEtaDfgdjMwvu5mKKSvJz/WIFKxVM/ZK 1yxi7srcjh38Msuutii/xDLSP3D7HHEjQqjdbXf2vZ0o/6Eu/aohD1u8PD2A4yWZySA3 6nPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RGLUwqZ+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v2-20020a170902d68200b00153c1012914si11064006ply.181.2022.03.21.20.19.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 20:19:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RGLUwqZ+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 044B550E36; Mon, 21 Mar 2022 19:51:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235616AbiCVCwm (ORCPT + 99 others); Mon, 21 Mar 2022 22:52:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235577AbiCVCwl (ORCPT ); Mon, 21 Mar 2022 22:52:41 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 900FC43394; Mon, 21 Mar 2022 19:51:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 39DBFB81B2B; Tue, 22 Mar 2022 02:51:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFA03C340E8; Tue, 22 Mar 2022 02:51:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647917471; bh=2bRP5Y4GjdyK69yoEGR0c5zmw5oC670YQPme7HBz7aI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RGLUwqZ+K49EIH8om+WKvAR6jxqoIiIw9RR9JZHrdJgXpu8ppQl3VK2c4oUsIUMKQ KPIcMzWiVkqoEgR871FYBMKuid/+/fBhMymN0k2ltopdoL6X2oYM0A2FNQT6FUHNHJ vDBYd9xELM3oUSr14Cal/lRvCkt1UbEk/xfzEQdr+gtjjCDX0LtWPzVsiCrFaV5gHg RePlCJ4QQ/S7Lsyi1Fg+7/+EBYsjR9Zy93mN582+w4vwPnjS35jgPZ4XUGupT4gSod QGULjYhgu+Zbqm2aRouXslyvLhOMtIamrHy7dQQvd2pqgqPPQHFGsaHLTT6vv7CW8j L4EOHrr8lrzjA== Date: Mon, 21 Mar 2022 19:51:11 -0700 From: "Darrick J. Wong" To: Yang Li Cc: linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot Subject: Re: [PATCH -next] xfs: clean up some inconsistent indenting Message-ID: <20220322025111.GN8224@magnolia> References: <20220322001137.96594-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220322001137.96594-1-yang.lee@linux.alibaba.com> X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 22, 2022 at 08:11:37AM +0800, Yang Li wrote: > Eliminate the follow smatch warning: > fs/xfs/xfs_log.c:3702 xlog_verify_tail_lsn() warn: inconsistent > indenting > > Reported-by: Abaci Robot > Signed-off-by: Yang Li https://lore.kernel.org/linux-xfs/20210902233137.GB1826899@dread.disaster.area/ ? --D > --- > fs/xfs/xfs_log.c | 22 +++++++++++----------- > 1 file changed, 11 insertions(+), 11 deletions(-) > > diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c > index a8034c0afdf2..5c8843026468 100644 > --- a/fs/xfs/xfs_log.c > +++ b/fs/xfs/xfs_log.c > @@ -3699,21 +3699,21 @@ xlog_verify_tail_lsn( > xfs_lsn_t tail_lsn = be64_to_cpu(iclog->ic_header.h_tail_lsn); > int blocks; > > - if (CYCLE_LSN(tail_lsn) == log->l_prev_cycle) { > - blocks = > - log->l_logBBsize - (log->l_prev_block - BLOCK_LSN(tail_lsn)); > + if (CYCLE_LSN(tail_lsn) == log->l_prev_cycle) { > + blocks = log->l_logBBsize - > + (log->l_prev_block - BLOCK_LSN(tail_lsn)); > if (blocks < BTOBB(iclog->ic_offset)+BTOBB(log->l_iclog_hsize)) > xfs_emerg(log->l_mp, "%s: ran out of log space", __func__); > - } else { > - ASSERT(CYCLE_LSN(tail_lsn)+1 == log->l_prev_cycle); > + } else { > + ASSERT(CYCLE_LSN(tail_lsn)+1 == log->l_prev_cycle); > > - if (BLOCK_LSN(tail_lsn) == log->l_prev_block) > - xfs_emerg(log->l_mp, "%s: tail wrapped", __func__); > + if (BLOCK_LSN(tail_lsn) == log->l_prev_block) > + xfs_emerg(log->l_mp, "%s: tail wrapped", __func__); > > - blocks = BLOCK_LSN(tail_lsn) - log->l_prev_block; > - if (blocks < BTOBB(iclog->ic_offset) + 1) > - xfs_emerg(log->l_mp, "%s: ran out of log space", __func__); > - } > + blocks = BLOCK_LSN(tail_lsn) - log->l_prev_block; > + if (blocks < BTOBB(iclog->ic_offset) + 1) > + xfs_emerg(log->l_mp, "%s: ran out of log space", __func__); > + } > } > > /* > -- > 2.20.1.7.g153144c >