From nobody Wed Dec 17 08:08:57 2025 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 BD5E1CDB47E for ; Fri, 13 Oct 2023 07:47:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229967AbjJMHrf (ORCPT ); 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 Content-Transfer-Encoding: quoted-printable 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= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Fix the following errors reported by checkpatch: ERROR: spaces required around that '<' (ctx:VxV) ERROR: spaces required around that '=3D' (ctx:VxV) ERROR: space required before that '&' (ctx:OxV) ERROR: spaces required around that '=3D=3D' (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=3D=3DDLM_RECOVERING?"recovering": - (status=3D=3DDLM_MIGRATING?"migrating": + status =3D=3D DLM_RECOVERING ? "recovering" : + (status =3D=3D DLM_MIGRATING ? "migrating" : (status =3D=3D DLM_FORWARD ? "forward" : "nolockmanager"))); actions =3D 0; @@ -436,7 +436,7 @@ int dlm_unlock_lock_handler(struct o2net_msg *msg, u32 = len, void *data, goto not_found; } =20 - queue=3D&res->granted; + queue =3D &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; } =20 - for (i=3D0; i<3; i++) { + for (i =3D 0; i < 3; i++) { list_for_each_entry(iter, queue, list) { if (iter->ml.cookie =3D=3D unlock->cookie && iter->ml.node =3D=3D unlock->node_idx) { --=20 2.17.1