From patchwork Fri Oct 13 07:45:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KaiLong Wang X-Patchwork-Id: 152362 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1724921vqb; Fri, 13 Oct 2023 00:47:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHRdaKNwjoU7igYUOJ24m3DWNHmcsvIhpaG02hEY79QGLJ6ZL4iDWaLwQ8EyAxVBi4L9gIV X-Received: by 2002:a05:6359:639d:b0:14d:2d2a:97f9 with SMTP id sg29-20020a056359639d00b0014d2d2a97f9mr21708525rwb.1.1697183260286; Fri, 13 Oct 2023 00:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697183260; cv=none; d=google.com; s=arc-20160816; b=oWvrh9ecGyKIdwO+3/biXs/SX4dsFt49uRP3C/XFO89z6OSt5qTm/fIEqa1QRneTbm DyBqwIFJG3Xa+fUWjvy4PZfdHJnWyAymI2DGPnEwmtYVGZ0ag41XkpFwdRaleZSatW5E 9pXyF3w7qLjRY5dAT/oiIWyQ1QSVOpa8rgCVMwb6dVAXm6TGpjgSmplVBtEFlzp6WJ88 DcNi6pEoLW7z7J0sLqUgr6RnKI+lZVGmXPZljxqwh3oIhZ70S6dxNhlnqdoP4xmIZcEz /tphEAIG9olwIumupeg3yem4TiVlz95sZKoRaz+vhNeHo6nYgyVpWSEQh+c8aTL87cP5 ucvg== 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=yvBKtfRbsU4WKHKCdOlZGFv7kbizXwPB3nJUzWa+I1U=; fh=om4/mXXkVPk48NmkUsVE7Qkezh08UPbINPIkkbjKBZU=; b=wBBj1JKDWqEnZqllDTUckiAt0NTnbA/hfreu3SvTrNkE3/o1iJcrSyo2ITCFRpH7vT A9MzvNC42RWJ2UrIV8FGowyA+9U1E4Ge7LqU/+BS+AKKyQrUzD3T3FeY475MI60tvZNK 389MD4k0tnDUnAV7s+xPl7oGppBLO99qEUtvEcPNrfevP2eUcMbUTn9o4uUVewBhRP8C nO04SdgSeFn/KTcZb0KDFlMH1sRkNiNjuL5gMtuU5PNjCqIul+nusydNevXmsNQzpzIv NC9g5i0hcBuZPe/WLtRSyAyEw1gqWxFYA8j7midsCzJNmhdEx3Rmyk5m1f9+YPhUCV4e 13iQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id s198-20020a6377cf000000b005ab190f9504si927456pgc.602.2023.10.13.00.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 00:47:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 94B1D80C0A5B; Fri, 13 Oct 2023 00:47:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229942AbjJMHrf (ORCPT + 19 others); Fri, 13 Oct 2023 03:47:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229863AbjJMHrd (ORCPT ); Fri, 13 Oct 2023 03:47:33 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 17E89B8 for ; Fri, 13 Oct 2023 00:47:30 -0700 (PDT) Received: from wangkailong$jari.cn ( [182.148.14.172] ) by ajax-webmail-localhost.localdomain (Coremail) ; Fri, 13 Oct 2023 15:45:46 +0800 (GMT+08:00) X-Originating-IP: [182.148.14.172] Date: Fri, 13 Oct 2023 15:45:46 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "KaiLong Wang" To: mark@fasheh.com, jlbec@evilplan.org Cc: ocfs2-devel@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] ocfs2: Clean up errors in dlmunlock.c 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: X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwDXaD6q9Shld9_BAA--.636W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQADB2UnvzMAKwAFsl X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=3.4 required=5.0 tests=BAYES_00,RCVD_IN_PBL,RDNS_NONE, T_SPF_HELO_PERMERROR,T_SPF_PERMERROR,XPRIO autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: *** 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 13 Oct 2023 00:47:39 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779625634330113907 X-GMAIL-MSGID: 1779625634330113907 Fix the following errors reported by checkpatch: ERROR: spaces required around that '<' (ctx:VxV) ERROR: spaces required around that '=' (ctx:VxV) ERROR: space required before that '&' (ctx:OxV) ERROR: spaces required around that '==' (ctx:VxV) ERROR: spaces required around that ':' (ctx:VxE) Signed-off-by: KaiLong Wang --- fs/ocfs2/dlm/dlmunlock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/ocfs2/dlm/dlmunlock.c b/fs/ocfs2/dlm/dlmunlock.c index 7318e4794ef9..ac9b29b2a11f 100644 --- a/fs/ocfs2/dlm/dlmunlock.c +++ b/fs/ocfs2/dlm/dlmunlock.c @@ -184,8 +184,8 @@ static enum dlm_status dlmunlock_common(struct dlm_ctxt *dlm, mlog(0, "%s:%.*s: clearing actions, %s\n", dlm->name, res->lockname.len, res->lockname.name, - status==DLM_RECOVERING?"recovering": - (status==DLM_MIGRATING?"migrating": + status == DLM_RECOVERING ? "recovering" : + (status == DLM_MIGRATING ? "migrating" : (status == DLM_FORWARD ? "forward" : "nolockmanager"))); actions = 0; @@ -436,7 +436,7 @@ int dlm_unlock_lock_handler(struct o2net_msg *msg, u32 len, void *data, goto not_found; } - queue=&res->granted; + queue = &res->granted; spin_lock(&res->spinlock); if (res->state & DLM_LOCK_RES_RECOVERING) { spin_unlock(&res->spinlock); @@ -459,7 +459,7 @@ int dlm_unlock_lock_handler(struct o2net_msg *msg, u32 len, void *data, goto leave; } - for (i=0; i<3; i++) { + for (i = 0; i < 3; i++) { list_for_each_entry(iter, queue, list) { if (iter->ml.cookie == unlock->cookie && iter->ml.node == unlock->node_idx) {