Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp745784imw; Mon, 4 Jul 2022 19:28:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tprUYlepI1u7r48yjduZmigIwfw+n+wElwvLKXhU5WxDy18/Z4IzZ9VGEuiHBagvlZPB2w X-Received: by 2002:a05:6402:228f:b0:43a:896:e4f0 with SMTP id cw15-20020a056402228f00b0043a0896e4f0mr18187764edb.81.1656988120966; Mon, 04 Jul 2022 19:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656988120; cv=none; d=google.com; s=arc-20160816; b=euUl7RApPeaEGiC8WYgJcUnwNExppTYCi8eG24pRM+naWBrikgleKSZS6ygNnu2+oN q9tBx7o8AXb+EaxFKw3/sma6vQuWrEBbhM6lzG+QyejA/pe8tc70OWIfckHM0LCA38jK BDDx5rdlnCC9hpjLDd5JviWx6yDpXYvMn0m9m4WKU0hJAeru+LXa7UHDqJjDfP68ymw4 INm9hF3Vz+mwxMucgXjLJ0HHqfLQgmf8sqRySaGgG6tl2yYx3k8RYrwyw+MD7kFXhnnC dOc+YU24LgYnILw3sboUUxqh1KjKpJbnJnZm/X9t1CiNI6klJg8UwhSnJLsz85i33uUh EyTQ== 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=9jPVEE0lOyZDc8jrSaBU8B/HT4DKmKt7+X3OBwVC4wE=; b=v/Hd5wlEy+gNWCq1DiSNW5eqguZrrkW38ZWIvqqLJWhsjyHRU4Sn32Lo7keq2fTai9 OckuRBQc2ko46bMlHGvYOtkKwS/OrthuRK7UdqwjBWyCVkwrloHJP7vJDsWfbSLbVS+U aVu/UrQ12Hojceqo51BzSR9H2zwActaxH4WqSJSFh0uLLUEr59FjP2eoUrAkF8iQAm+Y uIel7vUc2+xT7XlduBgL7Y9ovwG/uXPIpzOwkXhExEBpLYVJbTIxaLrXvn+2u+FO1mh4 v/Gfy39U0i/wgAAHp90glBZJHSvCUCGLqMsYBsO/z5ic5VrUIVoNfii24lwewgQzAD/C SYww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t22-20020a056402525600b0043a72fe76e5si2439651edd.366.2022.07.04.19.28.16; Mon, 04 Jul 2022 19:28:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234229AbiGEB5i (ORCPT + 99 others); Mon, 4 Jul 2022 21:57:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbiGEB5h (ORCPT ); Mon, 4 Jul 2022 21:57:37 -0400 Received: from out30-56.freemail.mail.aliyun.com (out30-56.freemail.mail.aliyun.com [115.124.30.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FF71101F5; Mon, 4 Jul 2022 18:57:36 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0VIPTyZN_1656986253; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VIPTyZN_1656986253) by smtp.aliyun-inc.com; Tue, 05 Jul 2022 09:57:33 +0800 From: Yang Li To: djwong@kernel.org Cc: linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] xfs: clean up some inconsistent indenting Date: Tue, 5 Jul 2022 09:57:31 +0800 Message-Id: <20220705015731.115025-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=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=ham 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:3576 xlog_verify_tail_lsn() warn: inconsistent indenting Signed-off-by: Yang Li --- fs/xfs/xfs_log.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c index ae904b21e9cc..058173dcf4e7 100644 --- a/fs/xfs/xfs_log.c +++ b/fs/xfs/xfs_log.c @@ -3573,21 +3573,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 (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); - - 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__); - } + 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); + + 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__); + } } /* -- 2.20.1.7.g153144c