Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp508508imn; Wed, 27 Jul 2022 12:08:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vfoo1+cKQ1i9BuB5g4W+ulogWMAOfrU1DJlOudhdM/I6FRFGM2Z8nyonDPjMLUG+1asAAE X-Received: by 2002:a17:902:aa06:b0:16c:cf06:c2d0 with SMTP id be6-20020a170902aa0600b0016ccf06c2d0mr22672902plb.117.1658948925730; Wed, 27 Jul 2022 12:08:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658948925; cv=none; d=google.com; s=arc-20160816; b=zqGyqgq7j+M0qb4g2jwW+2T9KNuDvT+CyOa6ALlyn8vNSCYmpde9xUMZCkWXSV9xRf kK60kCWfEN81/53Ou7zCjd7KIFpEMhKOnBubC5vMYF02yrLKEWkrHRnocLyfwao/94tb FKUeM26Sob3GJkTqrlRobhiQowt+/ieJ+Ub+Y2TzLo0kmBVe4CVbkkzapQTxSKzoflp3 RZD+9CxW5iCGt8x1uw7w0Il4NHMmxdwLHUxo6b/Q510xqJ84e+gFKxzCUOxhV0ABRQ+b LalsAeKqf6/SnEbnWJZMT9Ay5dTGG9GoxKj6OyXgGu0oc/Wjb6pqeXHksaeiXfiMtEr4 cTAA== 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=Krnmgblq4Hvv0bqBqcL0fxhGJqT8Vi4tmOEeWio1hu8=; b=UGMzqxKELtERbCe0R1MqHV/aLi+5AGFvPY5JxO8ym/bTzvreF2frjTfAMbs7aH6bTh KXbVeSw1ACcSFahrFrg1c0Xk59TXi6fQpHBmegjsmchftggnPxJTtUdKcnI5YLYnmPhu HHBz923250SB1h9vDlCnhsYcj84+qhKrdJViWwjaCIeaYw0zkjlOdCYL+LUNGtslv1tv l/NV5C+02F1XSYTQlxbSLEnnMb+ODJ0BdNE1HzaFE8KIjKQCxLLCv39hFjUpld9IaPrQ lcx0vbTBygdaq4hhbX5jMkD5aDR+/Y3+hsYH0II3QXPY6xKKXBaAiKeYyprwgOnwE2UQ ANWQ== 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 e2-20020a63db02000000b00419f7a9436asi20588352pgg.490.2022.07.27.12.08.30; Wed, 27 Jul 2022 12:08:45 -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 S235065AbiG0THh (ORCPT + 99 others); Wed, 27 Jul 2022 15:07:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234680AbiG0THM (ORCPT ); Wed, 27 Jul 2022 15:07:12 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67BF565802 for ; Wed, 27 Jul 2022 11:40:33 -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 sin.source.kernel.org (Postfix) with ESMTPS id CB9D4CE238B for ; Wed, 27 Jul 2022 18:40:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D08D9C433C1 for ; Wed, 27 Jul 2022 18:40:29 +0000 (UTC) Subject: [PATCH v2 05/13] NFSD: Reorder the fields in struct nfsd4_op From: Chuck Lever To: linux-nfs@vger.kernel.org Date: Wed, 27 Jul 2022 14:40:28 -0400 Message-ID: <165894722875.11193.2238058528803056154.stgit@manet.1015granger.net> In-Reply-To: <165894669884.11193.6386905165076468843.stgit@manet.1015granger.net> References: <165894669884.11193.6386905165076468843.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 struct nfsd4_op, 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..a36678e3ca0e 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 *);