From patchwork Thu Sep 28 02:51:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KaiLong Wang X-Patchwork-Id: 145711 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3034999vqu; Wed, 27 Sep 2023 19:53:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEHVCKL78MCyXm72F2gS2Q9eoaZyBPzUL3uldjukE6gNhr8mIAmIZfmzab53xI7VwgC+bHz X-Received: by 2002:a05:6a00:478e:b0:68f:c8b4:1a2b with SMTP id dh14-20020a056a00478e00b0068fc8b41a2bmr9459870pfb.17.1695869605007; Wed, 27 Sep 2023 19:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695869604; cv=none; d=google.com; s=arc-20160816; b=c+Q6YI3t8L/0a5PCHhEBZmZ4CaTOG1ZugScS4P+Pxwt6fQvVNmZd8s+GFGMvIEWykd Fh1PJYyfrCA4ji4o/muo4vnKN7+O4ylYM9fyhoXJPc6WSLRxi+IN/58gD22v/LOBcZxP 76oesfbOQseQq97rs3lwhMapoWHzWLgzteDTEx16CKi698BX2Xvr8kNHlaN9g9QtqjRJ WsmaDyjQnpdoSuwGAUhqOVD7zhyExzTdhLzc1RF2sSc14ErJFz9dbYCNyg3kSiuVo5uR lVczAmkA2w5KH5baNzTdkYffR977SGmzqNblS9Zbid8slhlzVtlhbvqN/hEyrZc+Scd7 b2+w== 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=2b3JY645lIuhZ+grsHDEpK6Iky3vlH6pnN8Mw7y0ncI=; fh=9l6d3OX0zErKvIfdXvQxMGLHy57xGHrBOfDTq7NONIo=; b=Qz+HpOksCk2z/zlcAgQmP9UUd7V5aLnK8b8xSiLdQUpS/wt+YZandP50lc9isBCvqv iQOm+vyo2OzCo0PMg96FM9X6UnzLI8RMaQUBQd/cYTp1ri0OBArtUWsKNakQDQbqIYeZ qJAZZ+WvRib8WcjzbR8oQ0Wx5WmP7fYyOblFv4e2M3UfL/hbN/7mHx/IEAHZ1Kc/MP6k fkP+YiXdhuROxmrkFMlRtoAtb1c7lcada8kFxDA0r4GLVQCzIWo0kv71Y4n4tFVgsz2Q Ou1FBDJYRdwc8Vqf4fcabUV310ks18zw7XJeuFOCThb64p/N2gxb7vFXHYAQ/aEQWIS7 p5XQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id p3-20020aa78603000000b00691018e3f4dsi16700144pfn.201.2023.09.27.19.53.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 19:53:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 073EC8371183; Wed, 27 Sep 2023 19:53:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230074AbjI1CxU (ORCPT + 20 others); Wed, 27 Sep 2023 22:53:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjI1CxT (ORCPT ); Wed, 27 Sep 2023 22:53:19 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0203694; Wed, 27 Sep 2023 19:53:17 -0700 (PDT) Received: from wangkailong$jari.cn ( [182.148.12.64] ) by ajax-webmail-localhost.localdomain (Coremail) ; Thu, 28 Sep 2023 10:51:55 +0800 (GMT+08:00) X-Originating-IP: [182.148.12.64] Date: Thu, 28 Sep 2023 10:51:55 +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 nfs3proc.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: <10df416a.8a7.18ad9b33756.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwBn+D1L6hRl0n6+AA--.635W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQAIB2UT+K8AFAACs5 X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_BLOCKED, 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 (howler.vger.email [0.0.0.0]); Wed, 27 Sep 2023 19:53:23 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778248167135390757 X-GMAIL-MSGID: 1778248167135390757 Fix the following errors reported by checkpatch: ERROR: need consistent spacing around '+' (ctx:WxV) ERROR: spaces required around that '?' (ctx:VxW) Signed-off-by: KaiLong Wang --- fs/nfsd/nfs3proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nfsd/nfs3proc.c b/fs/nfsd/nfs3proc.c index 268ef57751c4..3dc1386e30bc 100644 --- a/fs/nfsd/nfs3proc.c +++ b/fs/nfsd/nfs3proc.c @@ -171,7 +171,7 @@ nfsd3_proc_read(struct svc_rqst *rqstp) * + 1 (xdr opaque byte count) = 26 */ resp->count = argp->count; - svc_reserve_auth(rqstp, ((1 + NFS3_POST_OP_ATTR_WORDS + 3)<<2) + resp->count +4); + svc_reserve_auth(rqstp, ((1 + NFS3_POST_OP_ATTR_WORDS + 3)<<2) + resp->count + 4); fh_copy(&resp->fh, &argp->fh); resp->status = nfsd_read(rqstp, &resp->fh, argp->offset, @@ -194,7 +194,7 @@ nfsd3_proc_write(struct svc_rqst *rqstp) SVCFH_fmt(&argp->fh), argp->len, (unsigned long long) argp->offset, - argp->stable? " stable" : ""); + argp->stable ? " stable" : ""); resp->status = nfserr_fbig; if (argp->offset > (u64)OFFSET_MAX ||