From patchwork Thu Sep 28 02:43:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KaiLong Wang X-Patchwork-Id: 145703 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3032412vqu; Wed, 27 Sep 2023 19:45:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEVIUldj902VHDyfOl7HGUxa8PawTd03JdAGaiFP/KdTzlFSecivCCby3vTBdLv2li3QCA0 X-Received: by 2002:ac8:5b46:0:b0:418:17c0:e0b9 with SMTP id n6-20020ac85b46000000b0041817c0e0b9mr4602797qtw.50.1695869101200; Wed, 27 Sep 2023 19:45:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695869101; cv=none; d=google.com; s=arc-20160816; b=TI+6KTO4MarKj+GV4f+d2QHYWrbet8K/GHUP8+CWM3fHrGP5pcSXFqjPels9fnLfnK 6XTi360SL8pr6ZXusygUi4YhBQPdpgv9s45ly6ikMb/cFo8wc98HEPeBuogeZMgJ3jtx 5RX6CC+Q51S79j2Go4U3/fTg3lhxAj1fc8GjsR+kS5DEFKkmgWF9cSLFzjpc3L73Nidn siIX8aWISHYR+fnb1JtheCrQ9KKIuCJN1171zrllbsHr24Ls5KaN6358AxLFV692mxqA 0YHCCb0Gp7nTSceTf8UXWP1MqRT0Cvfo6NA4H6tLV8U5cBtTjEzRM/Luurl87LXDLExU CrJQ== 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=nOyt7qay5p30WIaQi76cD2ivBSWC77l6s+PHgvp1m5A=; fh=9l6d3OX0zErKvIfdXvQxMGLHy57xGHrBOfDTq7NONIo=; b=gZoddTgvaXPRSp/V/wc43UtTewH8BsH8mU7qpQeLQ+Q41l4wqpYnqslZdtyRRDqIwR RrX3k9qVavIN/DdgNDqpbxmJIIwWjgGoqXSz3JoH6Cuir5DAd2xeGPSwlpMCcc6sjKSM ONFBRgrvww0rtmEGlxPrDgmQ73cz3183eJ7eOna/NqRU3yVsuFe/vFL5KLbe5lOGi+JZ F0melP9yv/rgIwNGgySK2o639xSme/f10FYtMevJZHJe83QwtWS2ABfh3gZ+mEec4JFH +9W7vxtST7raoMKnydRultgv/j/7rv/CJUuNgAIkluMRJs9w0QbJUR9NqG+XI56b5vtK qM6Q== 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:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id a22-20020a63cd56000000b00577516d9a1esi17262342pgj.172.2023.09.27.19.45.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 19:45:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id F257B8304EF9; Wed, 27 Sep 2023 19:44:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230054AbjI1Coo (ORCPT + 20 others); Wed, 27 Sep 2023 22:44:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230102AbjI1Col (ORCPT ); Wed, 27 Sep 2023 22:44:41 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1530A1BC; Wed, 27 Sep 2023 19:44:30 -0700 (PDT) Received: from wangkailong$jari.cn ( [182.148.12.64] ) by ajax-webmail-localhost.localdomain (Coremail) ; Thu, 28 Sep 2023 10:43:04 +0800 (GMT+08:00) X-Originating-IP: [182.148.12.64] Date: Thu, 28 Sep 2023 10:43:04 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "KaiLong Wang" To: chuck.lever@oracle.com, jlayton@kernel.org, neilb@suse.de, kolga@netapp.com, Dai.Ngo@oracle.com, tom@talpey.com Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] nfsd: Clean up errors in nfs4state.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: <65758e6b.8a5.18ad9ab1c3e.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwD3lD846BRlzH2+AA--.690W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQAJB2T8PZMAAQAnsf 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 groat.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 (groat.vger.email [0.0.0.0]); Wed, 27 Sep 2023 19:44:59 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778247638739372315 X-GMAIL-MSGID: 1778247638739372315 Fix the following errors reported by checkpatch: ERROR: spaces required around that '=' (ctx:VxW) ERROR: space required after that ',' (ctx:VxO) ERROR: space required before that '~' (ctx:OxV) Signed-off-by: KaiLong Wang --- fs/nfsd/nfs4state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 988426c36cad..4ddd9664f4b3 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -59,7 +59,7 @@ #define NFSDDBG_FACILITY NFSDDBG_PROC -#define all_ones {{~0,~0},~0} +#define all_ones {{ ~0, ~0}, ~0} static const stateid_t one_stateid = { .si_generation = ~0, .si_opaque = all_ones, @@ -298,7 +298,7 @@ find_or_allocate_block(struct nfs4_lockowner *lo, struct knfsd_fh *fh, nbl = find_blocked_lock(lo, fh, nn); if (!nbl) { - nbl= kmalloc(sizeof(*nbl), GFP_KERNEL); + nbl = kmalloc(sizeof(*nbl), GFP_KERNEL); if (nbl) { INIT_LIST_HEAD(&nbl->nbl_list); INIT_LIST_HEAD(&nbl->nbl_lru);