Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2354281pxp; Mon, 21 Mar 2022 17:50:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/1bdq8wN1lNeocPXhhpo8rdv1sCbAJJ5OKxZBtPObJQuUxor40URWpy+7aY7vMdgRLcJ5 X-Received: by 2002:a65:6658:0:b0:381:a4da:3255 with SMTP id z24-20020a656658000000b00381a4da3255mr20108626pgv.603.1647910233751; Mon, 21 Mar 2022 17:50:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647910233; cv=none; d=google.com; s=arc-20160816; b=hz/gx2CkW5ucsz/nOBPJaOg5/uiddOc6oYgAVqdjNVzVcYRyRgF/kucjVH9CXkHsR5 QDbA8Hp0otru0P7d2RsVXaQ3x3deg4VsvkMkGVrxxfTt9s5f9IRZv4be2Hg/eZDsiIYz ln/3zKeCXcIKmsncwuHO7Nw1fMKoUrt/+6nSbY98SGhnoh85BH4AvAV0QpZenPbHI9c1 NGQ2dVYrGur4b59gyhuCTZ9WCfIxThjU5sihcqeYiznUonOgKQOuSfkbS2In/VNeztC5 A0QnwBUevmR1aUZt/xYkqGHnSS5rhXmMlR6jeMwk9MJZjTKO3j6+37KVEOQkB9hHOUts Q+5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=trxIzVGKkJCHniv1XaMYXfryQqIrOhPRhzqI1CrRi9U=; b=ptpALte1KLN2NzFVEOcpwVAc9KYsG/xYkPPZuwXT/EVk00+qRu7OMu7P8TMqu0Yqem woFYjy3Wp+W6AGLC/xlzoCzqRJR2dCnk3wQz0ykkq0Ni8MiiKYHlQPUCbF9M0s/WzTvg n/kwf7zMue27vvZoMIQgJ1wAmk8BastUs1R0HJMc2f/abbEU0y6eMWr0ap/oQUjb2U5Q GCyKza0WxpUXuHakTPsNMzpz/iFwQUapZ+avvFrXYYq7pqKRAXPPQA3I1hxox8bjWYPq ejTMVB33pmmb+wOpxBe3fXjtFtNFDcIu9udNJjcDCQUYchbHML2mZK1rAWsZFhZOWVoX LzZw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b3-20020a656683000000b003816043efbcsi14650651pgw.433.2022.03.21.17.50.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 17:50:33 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8B0681788DF; Mon, 21 Mar 2022 17:23:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233828AbiCVATC (ORCPT + 99 others); Mon, 21 Mar 2022 20:19:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233905AbiCVAS7 (ORCPT ); Mon, 21 Mar 2022 20:18:59 -0400 Received: from out199-3.us.a.mail.aliyun.com (out199-3.us.a.mail.aliyun.com [47.90.199.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96103DE905; Mon, 21 Mar 2022 17:16:15 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04357;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0V7sYEL4_1647907898; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0V7sYEL4_1647907898) by smtp.aliyun-inc.com(127.0.0.1); Tue, 22 Mar 2022 08:11:39 +0800 From: Yang Li To: djwong@kernel.org Cc: linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] xfs: clean up some inconsistent indenting Date: Tue, 22 Mar 2022 08:11:37 +0800 Message-Id: <20220322001137.96594-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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 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 --- 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