From patchwork Fri Oct 13 06:45:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KaiLong Wang X-Patchwork-Id: 152338 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1702348vqb; Thu, 12 Oct 2023 23:47:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFgZ8dykWimmD0RtFI69bH2C8ZL6jhbayIEk7eFWbxPhe6dPuOfPQIiCsGnxj1TNyPkAmrm X-Received: by 2002:a17:903:22cc:b0:1b8:2ba0:c9a8 with SMTP id y12-20020a17090322cc00b001b82ba0c9a8mr28544481plg.2.1697179666351; Thu, 12 Oct 2023 23:47:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697179666; cv=none; d=google.com; s=arc-20160816; b=XPYPk6UjMCufZqsabKXKIkrFsREvRuNiySv2qH2BOp8raFer+lPvquLprkjGUrkYLK kqpilkqlUXcM2OSNAr5pxKbeUHz2pjblMUJh8c4CBaJL2xFquCQgbPXbUgS7KBoChuTE 7uvCSRr3UhhnL1Mak1Pnt7dct6D6m1khjFa+97rLDMEiQxHZJLacv//Y/7jWV2zwx8ON 7D0q2zt1O05BoEzzfEgy3+A5/KkLs+PZEsKbxM7Pl7eX3eZWfJ6WRuhRkI2LQOOtZpYH JS2mtKqa/vo7SWFJmyGeo8il62c7bbvCuCmFRRRA8OppgcGtSqOwPX6+jpeiae7evEyA jjkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:cc:to:from:date; bh=ghCUXmJ147jnXAdhzqUrZNBUQkoZLr0BXHD9nbBvin4=; fh=Niin9j0E8Ll3UdqP2bvvWkPTrY5N0ubFRP8/l3a1kXA=; b=s2cylo6R7jKSC8mmab3aWnhU57ZdRotVdvuiHP7Ltd2IOd+LkYFgUmlTIlMt87uvpx X0zJI5g3wO5BVbVO44vsaW+W7FK5YavBTpppf1ydHEoizESSmzEBP6PI+NOhE4G08nid vxWtrZvfjni3caun5TjS/fJE1NvUH9rKFv2B2Vmm64oO/RDAihREZapxC87FDWh0tShp 232o/6T9HiL3o0s6B9qU271tFM1e5egnVkFuBd3DNZF7NOJNwfF2qsHI6v+s9IiSowGl vUKHoa1KToVsbgfcfChKeeNkR0arCxlZMmUmJT0n9dDQWbMf2PVrGqykpa+mBO1K9fOj vQ2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id m14-20020a170902db0e00b001bc674914b0si4090400plx.472.2023.10.12.23.47.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 23:47:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 7A36383797F3; Thu, 12 Oct 2023 23:47:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229808AbjJMGr3 (ORCPT + 19 others); Fri, 13 Oct 2023 02:47:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229797AbjJMGr0 (ORCPT ); Fri, 13 Oct 2023 02:47:26 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 262CCCE for ; Thu, 12 Oct 2023 23:47:24 -0700 (PDT) Received: from wangkailong$jari.cn ( [182.148.14.172] ) by ajax-webmail-localhost.localdomain (Coremail) ; Fri, 13 Oct 2023 14:45:42 +0800 (GMT+08:00) X-Originating-IP: [182.148.14.172] Date: Fri, 13 Oct 2023 14:45:42 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "KaiLong Wang" To: jaegeuk@kernel.org, chao@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH] f2fs: Clean up errors in segment.h X-Priority: 3 X-Mailer: Coremail Webmail Server Version 2023.1-cmXT6 build 20230419(ff23bf83) Copyright (c) 2002-2023 www.mailtech.cn mispb-4e503810-ca60-4ec8-a188-7102c18937cf-zhkzyfz.cn MIME-Version: 1.0 Message-ID: <1712b338.95b.18b27c8a5b6.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwDHZD+W5yhlQN7BAA--.687W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQABB2UlHDMAlgAJs3 X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 12 Oct 2023 23:47:44 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779621865500173347 X-GMAIL-MSGID: 1779621865500173347 Fix the following errors reported by checkpatch: ERROR: spaces required around that ':' (ctx:VxW) Signed-off-by: KaiLong Wang Reviewed-by: Chao Yu --- fs/f2fs/segment.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h index 2ca8fb5d0dc4..8129be788bd5 100644 --- a/fs/f2fs/segment.h +++ b/fs/f2fs/segment.h @@ -108,11 +108,11 @@ static inline void sanity_check_seg_type(struct f2fs_sb_info *sbi, ((sbi)->segs_per_sec - ((sbi)->unusable_blocks_per_sec >>\ (sbi)->log_blocks_per_seg)) #define GET_SEC_FROM_SEG(sbi, segno) \ - (((segno) == -1) ? -1: (segno) / (sbi)->segs_per_sec) + (((segno) == -1) ? -1 : (segno) / (sbi)->segs_per_sec) #define GET_SEG_FROM_SEC(sbi, secno) \ ((secno) * (sbi)->segs_per_sec) #define GET_ZONE_FROM_SEC(sbi, secno) \ - (((secno) == -1) ? -1: (secno) / (sbi)->secs_per_zone) + (((secno) == -1) ? -1 : (secno) / (sbi)->secs_per_zone) #define GET_ZONE_FROM_SEG(sbi, segno) \ GET_ZONE_FROM_SEC(sbi, GET_SEC_FROM_SEG(sbi, segno))