Message ID | 20230921075755.1378787-1-max.kellermann@ionos.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5264170vqi; Thu, 21 Sep 2023 18:56:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFdnEUOIU+UTbMISt2SehYmfyAGG43WZnilYe6euEPMIHqK9rypf8n0dqc/DzOEO+tCSvAB X-Received: by 2002:a17:902:f80a:b0:1c5:deaa:d72e with SMTP id ix10-20020a170902f80a00b001c5deaad72emr1568582plb.30.1695347783676; Thu, 21 Sep 2023 18:56:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695347783; cv=none; d=google.com; s=arc-20160816; b=Qi9W3OABc7wOdWB9CNCtvy0qDpdWfOArCfgQHafRboPKoFDiU+D/AT7siN73IolVse +uyZ0Mglnh8OFikH5n8JG9wqcbglNnGFuJgb2gECIRauhGJSx9i/d3Nvm7fgG0DPxIaR 3mXRx9uIb2sM3qHzEzXnGtIU2s25d7UAo581chjOwkhCemLtbIvnpmP0+V8tNHWJ6miv HtWT6xPdJFYPB6J+daof9oyaGf4um1MseDXqaWRkdCXug7ShAXJf+FwytCzMgRTaGXxH /cWZicN9UzrwEKBQ0sDwSsY+T0XHlUeWPA2q+4keBXUn6zj9sCTgqotevKJxQ6ZVCwE1 Bjxg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=uXl3XjtNY+qQUGAfKFbAOhIfMu203xufyzo0Jfa0XyY=; fh=/mmUFS5s71yRsPeN08HF9rYndG2tJREJfMy47/3Il/c=; b=uNF7nKqRdV7D7UiBM5BN+RLA8Rtv+tKqkta9g8GnWkI4s89hLoPf19ZwB87EMAARfk gW4fHhQv0q9QGxHO2WaeKB4mesLfHkalc8ydxwMbyAY3gGylXfWsO91+2ga22V2PxOJA 8eKjcyH0+AHVMVzYGC+H13ciF84C2xZwHUgz7x1r1tv6uN46ed4SuOoI0Fsh7kgP6G3g Y5X+KZZzaX1NKavjcNktz/hFarcGF7n3gCrYqRSuzmGqJQCnhWqU9LPXs3fRr3qpjMcg /Y4QRUbuXp+S8PLRsI8RKS79JO5q68e0uqFd8bInXD1s+gAtR4rbhFYt70jfkx2U26lx S3cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=iRPclcbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id l16-20020a170902f69000b001c5e0672f53si1493978plg.466.2023.09.21.18.56.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 18:56:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=iRPclcbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 5127C82AE2D5; Thu, 21 Sep 2023 12:45:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231171AbjIUTpJ (ORCPT <rfc822;ruipengqi7@gmail.com> + 28 others); Thu, 21 Sep 2023 15:45:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231395AbjIUToq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 21 Sep 2023 15:44:46 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46A1510D76C for <linux-kernel@vger.kernel.org>; Thu, 21 Sep 2023 12:31:20 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4053c6f0da0so1640145e9.1 for <linux-kernel@vger.kernel.org>; Thu, 21 Sep 2023 12:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1695324664; x=1695929464; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uXl3XjtNY+qQUGAfKFbAOhIfMu203xufyzo0Jfa0XyY=; b=iRPclcbEziiuXphFxRjzycEIzgzVvfixovnnY4z5rMoA8nZQhVSi2TzjFvZhuYnott F1ZFDsMMxSO4O99WzxyJDTcpo4zhddeK3Q0OVoDfH/ypn6AdIdHlwqmlkxqkLp5B5q5w QolScV9TwCk/GfZ8CelkWOwX7wqK5Hd60a2nzZnX9XrFQfi089RIYsnxhgoUiubdtu1M fYrd7hOnuxK14aKZyIBbRtuw1/1Ck3zFJRyJElwQ9rqKV6Kt8iWTdnfDCjW9BIx7q2ds Fvwenutawy+gAoF8SGE8c1XYI3Wt2jp6gs/TxVghZX4jDiHEHmDJJHFoQ1xqpUakJpqV Q3ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695324664; x=1695929464; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uXl3XjtNY+qQUGAfKFbAOhIfMu203xufyzo0Jfa0XyY=; b=EIomeeeB/V89W4OcanAsjfM9p/vo8KY8X/uxW1l6z+fg5Z6QZssFj/uG5h0HGklT0T ErRZbMDaHRZl/WP7FSLPF710ZaPHBt2aKs454kkUxCYUWiM9orlaNooNKbV9CF+gdvvs 1xf8zs5WGdzPZktVo63EumdLGtbJvy4quInL1n2WtVWrgjCRC3+dmE+HZFjU1Hsi7qvZ TNiGOiX6jP4ohe3fwFL13C0KkpumwIopf2AQrXDlQssCZlVmVfXJvs3AJTYyUnEWDhIJ kKeC93b5rHCPx7sg3McEvk2H0dvnlXNuIjTtR2KNLfth/JorlVN2+6LmQyr/IfP3Bjhj 2J9g== X-Gm-Message-State: AOJu0Yy0Utwjs//cQhKMjUEySipkhjZ5/2x0BwDCQkw82qw6Absw4fvz 9+rKgIVA9XsOwsCicZL+qlxAQkfRJa7vRBCPFPI= X-Received: by 2002:ac2:44ce:0:b0:503:f:1343 with SMTP id d14-20020ac244ce000000b00503000f1343mr3999054lfm.19.1695283079562; Thu, 21 Sep 2023 00:57:59 -0700 (PDT) Received: from heron.intern.cm-ag (p200300dc6f209c00529a4cfffe3dd983.dip0.t-ipconnect.de. [2003:dc:6f20:9c00:529a:4cff:fe3d:d983]) by smtp.gmail.com with ESMTPSA id v4-20020a05600c214400b003fef19bb55csm1151252wml.34.2023.09.21.00.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 00:57:59 -0700 (PDT) From: Max Kellermann <max.kellermann@ionos.com> To: viro@zeniv.linux.org.uk, brauner@kernel.org, howells@redhat.com Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Max Kellermann <max.kellermann@ionos.com> Subject: [PATCH 1/4] pipe: reduce padding in struct pipe_inode_info Date: Thu, 21 Sep 2023 09:57:52 +0200 Message-Id: <20230921075755.1378787-1-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 21 Sep 2023 12:45:11 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777689869494391157 X-GMAIL-MSGID: 1777700997284563914 |
Series |
[1/4] pipe: reduce padding in struct pipe_inode_info
|
|
Commit Message
Max Kellermann
Sept. 21, 2023, 7:57 a.m. UTC
This has no effect on 64 bit because there are 10 32-bit integers
surrounding the two bools, but on 32 bit architectures, this reduces
the struct size by 4 bytes by merging the two bools into one word.
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
---
include/linux/pipe_fs_i.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/linux/pipe_fs_i.h b/include/linux/pipe_fs_i.h index 608a9eb86bff..598a411d7da2 100644 --- a/include/linux/pipe_fs_i.h +++ b/include/linux/pipe_fs_i.h @@ -62,9 +62,6 @@ struct pipe_inode_info { unsigned int tail; unsigned int max_usage; unsigned int ring_size; -#ifdef CONFIG_WATCH_QUEUE - bool note_loss; -#endif unsigned int nr_accounted; unsigned int readers; unsigned int writers; @@ -72,6 +69,9 @@ struct pipe_inode_info { unsigned int r_counter; unsigned int w_counter; bool poll_usage; +#ifdef CONFIG_WATCH_QUEUE + bool note_loss; +#endif struct page *tmp_page; struct fasync_struct *fasync_readers; struct fasync_struct *fasync_writers;