From patchwork Wed Nov 19 12:51:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 5337061 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id ABCCBC11AD for ; Wed, 19 Nov 2014 12:51:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CB684200E3 for ; Wed, 19 Nov 2014 12:51:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B1ABD201EF for ; Wed, 19 Nov 2014 12:51:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754946AbaKSMvo (ORCPT ); Wed, 19 Nov 2014 07:51:44 -0500 Received: from mail-qg0-f48.google.com ([209.85.192.48]:54372 "EHLO mail-qg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754943AbaKSMvl (ORCPT ); Wed, 19 Nov 2014 07:51:41 -0500 Received: by mail-qg0-f48.google.com with SMTP id q107so321691qgd.7 for ; Wed, 19 Nov 2014 04:51:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=AIeJmN9WiNXcNAvhX98NG8u/JYkJDb7nGK/eSZs25XY=; b=E5Bni98TiLNHjGZ+JWil67dlrh6ZUkRfVEQe13YtnaRf4VJ+zpcQRYti65QLNxq579 Qr6uRUzh+T4TfeoIR/3sNoddBG3W1fYTg/NMGMJuV2ghwqdypX1Ew+f1fHVOplPBbvP5 sXaSmFsuoZzIjoR5xW34xCsVoNzrKMQLbgLH4/vjhvz+SaNUOsO/KqXxtu4mXaVjw5md ltT0gaCFtBJ7HaR1nFpQO/NJkMud3NKL6lax6ttAvoRAH/Nxg9YZglo++CxD2pnw04V4 mh5eJ72VFeslhq4mlHqE7S+hoR17njkiY0WdctFZy1WIZlcZu2T7fkCjw+3VzY0BRrgI G86g== X-Gm-Message-State: ALoCoQkdd6WfFBaWaoqWbFwNp+ZYhrRf4sZ5U9Uk02GyIV9x4UPZpnmUK8hqGHqgFgSHBmHqVekt X-Received: by 10.140.92.215 with SMTP id b81mr34387904qge.5.1416401500617; Wed, 19 Nov 2014 04:51:40 -0800 (PST) Received: from tlielax.poochiereds.net ([2001:470:8:d63:3a60:77ff:fe93:a95d]) by mx.google.com with ESMTPSA id w75sm1438572qgd.14.2014.11.19.04.51.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Nov 2014 04:51:39 -0800 (PST) From: Jeff Layton To: bfields@fieldses.org Cc: linux-nfs@vger.kernel.org Subject: [PATCH 07/10] sunrpc: move rq_cachetype field to better optimize space Date: Wed, 19 Nov 2014 07:51:19 -0500 Message-Id: <1416401482-2562-8-git-send-email-jlayton@primarydata.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1416401482-2562-1-git-send-email-jlayton@primarydata.com> References: <1416401482-2562-1-git-send-email-jlayton@primarydata.com> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There are a couple of holes in the svc_rqst field on x86_64. Move the rq_cachetype to a different location to eliminate both of them. Signed-off-by: Jeff Layton --- include/linux/sunrpc/svc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index 2714287fc4f6..8054a30c8a95 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h @@ -252,6 +252,7 @@ struct svc_rqst { u32 rq_vers; /* program version */ u32 rq_proc; /* procedure number */ u32 rq_prot; /* IP protocol */ + int rq_cachetype; /* catering to nfsd */ #define RQ_SECURE (0) /* secure port */ #define RQ_LOCAL (1) /* local request */ #define RQ_USEDEFERRAL (2) /* use deferral */ @@ -278,7 +279,6 @@ struct svc_rqst { /* Catering to nfsd */ struct auth_domain * rq_client; /* RPC peer info */ struct auth_domain * rq_gssclient; /* "gss/"-style peer info */ - int rq_cachetype; struct svc_cacherep * rq_cacherep; /* cache info */ struct task_struct *rq_task; /* service thread */ };