Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2111938rwd; Mon, 15 May 2023 07:25:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ64tIyRS3+HTwtaXs536y4Uc8Hjp+ngPZLsvTO32FlDQIODE+gPC/4YV+1mAkyKBuL8A4+P X-Received: by 2002:a17:902:d502:b0:1ac:7aa1:c7bf with SMTP id b2-20020a170902d50200b001ac7aa1c7bfmr32508107plg.60.1684160752425; Mon, 15 May 2023 07:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684160752; cv=none; d=google.com; s=arc-20160816; b=DAN2ozANan/7BlN0MABZ2YXmW9kgG9VoZleXwB4egU0sw29VmgjG9r1krRD6452FC4 bLk5O9hyQkfyw1bjVp9vr0Oah1pEjhacXc/I5/B/kT0kwatdAtk82ehsLa2/bh87zDKQ bS8E2ksNFsrZn4xFoEm1EPWi+/9qG8AVoIjP95V+r4hycIOGkK2bj3c8vdgR1NvRUS8a OwWqnOsX9IiyvsvHBZGGvWRl4hj9y5aZti2ADxJ4yUqFldHjF6GQzOn811bMApa0GPEE oHChcArWTZZY6wbqS63YFIYgkrf22CR1G4JkpiOdn+G/w9D/rDThqpJ2+HWjlV5zUChl 8VmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YZhc2D9jkVzy7AfJk2YUVgKBvfauZh1OHpirItMVirU=; b=RREV9MpZljaZQXesjb5tUHhZd/ehk6OpEMOmtfKlTFcX+0Ts6yHKB/+kti/COGuysT 0Lz7vomDYimevjphwvbmQu8YBaLTXHVJqRjHEtozJzijLAt5WN51AbnBShy/Jw0FG2nT bTG2LfQZUs17kM6l6qgmhOg/s80ShwsOb/4MQYLvPbF55bfJg/UJpv3Z5wdg2HnYC928 evOXIHBez8MONARaStZpiThVG9CMySTiRgl6pVwDKL/yeg+/zwCKygZkXvEasysdCCDz 4VebjzpDi5q7ZGnR0KQHZv3RN2MA70+GoPIGza2kcBS3xYpqQ0QSR+LyMvoL9igZONzp YPCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=efanRrlp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jk7-20020a170903330700b001aaebc66877si15333230plb.147.2023.05.15.07.25.38; Mon, 15 May 2023 07:25:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=efanRrlp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241100AbjEOOW3 (ORCPT + 99 others); Mon, 15 May 2023 10:22:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240981AbjEOOWO (ORCPT ); Mon, 15 May 2023 10:22:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A3692690; Mon, 15 May 2023 07:21:32 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 11F2661D97; Mon, 15 May 2023 14:21:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF7C5C433EF; Mon, 15 May 2023 14:21:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684160491; bh=lKnul3tmWj3tLZgkEsGa1O/MPi5gzvyT3nQCUJQZQgo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=efanRrlp5TXWSXfEaTLmJYO493vRVgbH414MpVOnof0Jub0X1E9pIJ6nA0U8vhtfV LxLsPREW9qyNpLMVi+SFKRaFktXjmUAzvKW+lGPk1pJ+SPV7vFnXtdCRpy15ADs3er 2lGfJH/8RDtwMcFZnIZlxNkQUYytG3zZz2HWS9PnePKdTm7hU1U6/cx0M+0B1QWVTP hOMPDDPohr7LZGfltSdL8vEnqoPUfq8BWW0tXrFdy1nCAYPYSYwPeTF5pLc/D/fuFR q4/RPbQu3nMDaPuSsD9hVFPv9aCBTqWl+GRooqyr+q+/o3ns21R/QvgUCBvbPq8h5p w1ltF0SA1+7Dg== Date: Mon, 15 May 2023 08:21:28 -0600 From: Keith Busch To: Christophe JAILLET Cc: hch@lst.de, sagi@grimberg.me, kch@nvidia.com, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH 2/5] nvmet: Reorder fields in 'struct nvme_ctrl' Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org On Mon, May 01, 2023 at 02:40:26PM +0200, Christophe JAILLET wrote: > Group some variables based on their sizes to reduce holes. > On x86_64, this shrinks the size of 'struct nvmet_sq' from 5368 to 5344 > bytes when all CONFIG_* are defined. This patch is changing struct nvme_ctrl but the commit log only mentions struct nvmet_sq, which was handled in patch 1/5. I'll just fix that up when applying. > This structure is embedded into some other structures, so it helps reducing > their size as well. > > Signed-off-by: Christophe JAILLET > --- > Using pahole > > Before: > ====== > struct nvme_ctrl { > bool comp_seen; /* 0 1 */