Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp955013imi; Fri, 22 Jul 2022 13:28:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tik5p2/tf5FDAI9yC5gyAX6d1fMey9OtXFgFhH8ImG6dPEfnX/uiK7h8CUhULAcUPjHAYw X-Received: by 2002:a17:90b:4b8a:b0:1ef:9e43:3791 with SMTP id lr10-20020a17090b4b8a00b001ef9e433791mr1482948pjb.38.1658521738290; Fri, 22 Jul 2022 13:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658521738; cv=none; d=google.com; s=arc-20160816; b=xpUahoolFDLXyclV25owYCbByq4CcImNN17cOeP+lwVT2IxsiTevlXM2sa3u0HZpb2 q7Dc44BdHcCzp3XzhJzzyUF71vU/L0NJVKd/iwFBRQQixpc+soD/6INz1NpXz9YKNZ7U 4In/mcxqUflhomZne+n+Eqw2kbOAj1kvvFtK78IK8J+C70zxR9zROgiC+cyqP8e8RRD2 5D4AwTl6VTP0bzKsGQKm/xqdt0xaHSUA0LqE1yhEYMuHs/QgkeZDK3SQiYI/HTxXmHVN hhXSBVl5OlfHvmQEEQRSxMMWJ94xLwNF4s4o7tAPcotAQhr+Qk22FlrL3P5GM5zsLKoR 8frQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:to:from:subject; bh=nb4xw5J6/0BI6Vsa8KnX24rvkLggzf/rQBsXkCbSKHs=; b=INt1LdEnpePFFGb5rBU5NUzwecrLnuFpr7nql5RHFrRWV/NYznSzQFpwikAtKSA0ih 7mbrjvkmalNK9w97SHNFWbMYCh5L5G6egCbAPcWuptzWJoKqbzimK/vHhvF5WhafJpV3 v2ohyjtzDecr0/iXI4AZSe+/BzB1350Y033E4JTXlBACtCh6kCn5iiNg0w9daOzxVqKL n3rEr8sSinnhZSNqANLmj+8X2niaWoyUOI0pZpJr/TCRWJ40q8FQRg4cQWSx7SBGdH8l HRmkMfTUou1P6Z1dmc0KXPFHaGxXE/dl9MnV2nxMRegO2zTf4NZCpNJLwG5m50beHNQg p5tA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4-20020a656684000000b0040d1da68c7bsi6965466pgw.7.2022.07.22.13.28.42; Fri, 22 Jul 2022 13:28:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235796AbiGVUTX (ORCPT + 99 others); Fri, 22 Jul 2022 16:19:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236839AbiGVUTT (ORCPT ); Fri, 22 Jul 2022 16:19:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDC257F50A for ; Fri, 22 Jul 2022 13:19:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 79BF7B82A1E for ; Fri, 22 Jul 2022 20:19:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31273C341C6 for ; Fri, 22 Jul 2022 20:19:16 +0000 (UTC) Subject: [PATCH v1 03/11] NFSD: Reorder the fields in struct nfsd4_op From: Chuck Lever To: linux-nfs@vger.kernel.org Date: Fri, 22 Jul 2022 16:19:15 -0400 Message-ID: <165852115525.11403.3075914903130347093.stgit@manet.1015granger.net> In-Reply-To: <165852076926.11403.44005570813790008.stgit@manet.1015granger.net> References: <165852076926.11403.44005570813790008.stgit@manet.1015granger.net> User-Agent: StGit/1.5.dev2+g9ce680a5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Pack the fields to reduce the size of this structure, which is used an array in struct nfsd4_compoundargs. sizeof(struct nfsd4_op): Before: /* size: 672, cachelines: 11, members: 5 */ After: /* size: 640, cachelines: 10, members: 5 */ Signed-off-by: Chuck Lever --- fs/nfsd/xdr4.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nfsd/xdr4.h b/fs/nfsd/xdr4.h index f5ad2939e6ee..dd516d5b1d81 100644 --- a/fs/nfsd/xdr4.h +++ b/fs/nfsd/xdr4.h @@ -606,8 +606,9 @@ struct nfsd4_copy_notify { struct nfsd4_op { u32 opnum; - const struct nfsd4_operation * opdesc; __be32 status; + const struct nfsd4_operation * opdesc; + struct nfs4_replay * replay; union nfsd4_op_u { struct nfsd4_access access; struct nfsd4_close close; @@ -671,7 +672,6 @@ struct nfsd4_op { struct nfsd4_listxattrs listxattrs; struct nfsd4_removexattr removexattr; } u; - struct nfs4_replay * replay; }; bool nfsd4_cache_this_op(struct nfsd4_op *);