Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7734499rwb; Tue, 15 Nov 2022 17:13:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf6cWU6a4Ld13XxRc5jtNLMtRTNJn4fpQv7wOEQ6AILDS/2IMEPYXIOBWnwFYdmGdzvqrejL X-Received: by 2002:a17:906:b1c8:b0:78d:474c:2a59 with SMTP id bv8-20020a170906b1c800b0078d474c2a59mr15769966ejb.759.1668561186772; Tue, 15 Nov 2022 17:13:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668561186; cv=none; d=google.com; s=arc-20160816; b=wKb4P7LgpJWXKwMm1bxqaJgx40rrYFvus3Hk4y8SBEQ1f/b2ZqAiXmoyJRkjirJRwn pdqEB+H9tafY0YVotXY4cflo9XgCk/w0pDaXBctS4rmzH8hx4vG0mvNAKXsl8UlRwyPu 36pRqWzmvUG9SWeJJnhAtfiyI+NmEyciuQjUPw+p9NsDjVyubw3CvTDdaUEjRE7XeNgL yCWRrcvoN6peylQ0kYlg0Ax0jYO8A9KTzHBs8ZIXVpbjLjQ2qxqeFAae+LPyQkBz+kVf amFMbHIRZ8X3nfwaL1f5L/j0+TkVYgi9CIu6kSNRfNHl6w1CEXtmLU0rCp9I1LB8Sa6i hKsw== 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=n2l5co9GxMCpEdkhpEytpcj77OIogtDJ9X7Nnp0+pOg=; b=oiCPiUJed6LheX0Clu6+fdiKTmD+GNCggVRXcVCqrx78vvqpG75+OC8Y2jgBpIzThm DmNmX5D4pwkWSZhdCuAoTCzfdT/8Pb8/YQKe3RjcfQ+T7mToPBXgS+0Z5Ul3s9bMepeP Nrb3BzwqZirtoc6ZS38AH9G6R7a6seduZcCBxBvwFRm6cnWjeABmPB57BwNlBcSoHSG9 oMc+bXWovaYjo4KRcJh6hj8l8cSgugmULvJbaIqGV0Ypi2GQOfcZQMjvpPhk9PxmnIWP A2j7kri2Ma2+WbsHsFAyPEWvMNRunUW1xtbWSdKYCphXJUxy9Vs1cMOhZ7qSPwXse4ML r/HQ== 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 w10-20020a05640234ca00b00461eb5cdcdcsi13160271edc.23.2022.11.15.17.12.41; Tue, 15 Nov 2022 17:13:06 -0800 (PST) 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 S231522AbiKPA7O (ORCPT + 91 others); Tue, 15 Nov 2022 19:59:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229790AbiKPA7K (ORCPT ); Tue, 15 Nov 2022 19:59:10 -0500 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D43AFB86B; Tue, 15 Nov 2022 16:59:08 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R751e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VUv04qu_1668560345; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VUv04qu_1668560345) by smtp.aliyun-inc.com; Wed, 16 Nov 2022 08:59:06 +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: Fix some kernel-doc comments Date: Wed, 16 Nov 2022 08:59:04 +0800 Message-Id: <20221116005904.54375-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,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 fs/xfs/xfs_log.c:3601 xlog_verify_tail_lsn() warn: inconsistent indenting Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3079 Reported-by: Abaci Robot 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 0141d9907d31..4d031ed3f3c1 100644 --- a/fs/xfs/xfs_log.c +++ b/fs/xfs/xfs_log.c @@ -3598,21 +3598,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