From nobody Sun Apr 19 09:04:38 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5AABBC433EF for ; Tue, 5 Jul 2022 01:57:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234235AbiGEB5j (ORCPT ); Mon, 4 Jul 2022 21:57:39 -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: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 =3D be64_to_cpu(iclog->ic_header.h_tail_lsn); int blocks; =20 - if (CYCLE_LSN(tail_lsn) =3D=3D log->l_prev_cycle) { - blocks =3D - 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 =3D=3D log->l_prev_cycle); - - if (BLOCK_LSN(tail_lsn) =3D=3D log->l_prev_block) - xfs_emerg(log->l_mp, "%s: tail wrapped", __func__); - - blocks =3D 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) =3D=3D log->l_prev_cycle) { + blocks =3D + 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 =3D=3D log->l_prev_cycle); + + if (BLOCK_LSN(tail_lsn) =3D=3D log->l_prev_block) + xfs_emerg(log->l_mp, "%s: tail wrapped", __func__); + + blocks =3D 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__); + } } =20 /* --=20 2.20.1.7.g153144c