From patchwork Tue Nov 7 13:44:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Granados via B4 Relay X-Patchwork-Id: 13448709 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8340EC4167B for ; Tue, 7 Nov 2023 13:45:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C5F146B00A2; Tue, 7 Nov 2023 08:44:56 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BC2066B009D; Tue, 7 Nov 2023 08:44:56 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9C49B6B00A2; Tue, 7 Nov 2023 08:44:56 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 79BD36B009D for ; Tue, 7 Nov 2023 08:44:56 -0500 (EST) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 545CC40A18 for ; Tue, 7 Nov 2023 13:44:56 +0000 (UTC) X-FDA: 81431278992.24.202BAFE Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf19.hostedemail.com (Postfix) with ESMTP id 467D81A000B; Tue, 7 Nov 2023 13:44:51 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=jteEPtHI; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf19.hostedemail.com: domain of devnull+j.granados.samsung.com@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=devnull+j.granados.samsung.com@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699364693; h=from:from:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Tx3BEBR3CN94z3gLDjAIrZEqxqUbEbzHGOCVB/Wa6F8=; b=TIYpCRW9VbYQGwXDmXFTAf0ndug8jDrTgUbs679p+udmYED7owuLutwMw3OQ8Zp7TLIIlt ObnVHS0jvddYmrELtduawWa9M7h9OaM4lyjQ5pF/dcQy7JXdDaN8iFiEGo6HPPenj3BH8A hF+8D0Gvvkc7/3KMOuhpjJA2p17Vx1U= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=jteEPtHI; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf19.hostedemail.com: domain of devnull+j.granados.samsung.com@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=devnull+j.granados.samsung.com@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1699364693; a=rsa-sha256; cv=none; b=6QbCXD9neUaqWyxKLeJt5s6/mwCmGBwTmX9l6MwJNti17wQO8koWCkJW4aybQ6kIfJ3hsF ufTkLDiJ05hu0yVf9FHkcKOxAWLiTRtSy7N19x6O76hgJOIrNjSzt4htfjkzI9LPjY9kuE zumN4h71Hn1kx55yc2osPRTmIdCfGT4= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id BBCEACE0E6A; Tue, 7 Nov 2023 13:44:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 76D08C433C8; Tue, 7 Nov 2023 13:44:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699364686; bh=jp5zupYC3dqga+xgTeyhYepRQqFBsm6KYR9/rvlBnN0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=jteEPtHIs7oAmJr7WInd7m30GfZ3+4YOC7SdOkBiKWXaNYrkebAR9Qw9S20TrciIE +iRJWBmeeD6H4E6Q0UGLCOHUSZPQKR+ilHqofBw0pECe3YuXPN4n3T9LQK+Exg9yVi uUHPHnc7KFA754RGOn4/y3TBRY4aqg0D04JTxg3j3OquVgbec1cFP0iEDt+rN+3ClT FSDI9AfK9PnF9RPehD0CN90FIOsHCa6yTryGLJPb5vvfzlCsF1dyKyKLm8pZHB7eIs TuRcvvyJJCXvglvGlTiWBNHPpG/9UxXE/Uc/01v8JHju0okDPMW+snpyk9bUq56tVO NDvvV/UHanIQA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 549B9C4167D; Tue, 7 Nov 2023 13:44:46 +0000 (UTC) From: Joel Granados via B4 Relay Date: Tue, 07 Nov 2023 14:44:20 +0100 Subject: [PATCH 1/4] cachefiles: Remove the now superfluous sentinel element from ctl_table array MIME-Version: 1.0 Message-Id: <20231107-jag-sysctl_remove_empty_elem_fs-v1-1-7176632fea9f@samsung.com> References: <20231107-jag-sysctl_remove_empty_elem_fs-v1-0-7176632fea9f@samsung.com> In-Reply-To: <20231107-jag-sysctl_remove_empty_elem_fs-v1-0-7176632fea9f@samsung.com> To: Luis Chamberlain , willy@infradead.org, josh@joshtriplett.org, Kees Cook , David Howells , Alexander Viro , Christian Brauner , Benjamin LaHaise , Eric Biederman , Trond Myklebust , Anna Schumaker , Chuck Lever , Jeff Layton , Neil Brown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Jan Kara , Amir Goldstein , Matthew Bobrowski , Anton Altaparmakov , Namjae Jeon , Mark Fasheh , Joel Becker , Joseph Qi , Iurii Zaikin , Eric Biggers , "Theodore Y. Ts'o" , Chandan Babu R , "Darrick J. Wong" , Jan Harkes , coda@cs.cmu.edu Cc: linux-cachefs@redhat.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net, ocfs2-devel@lists.linux.dev, fsverity@lists.linux.dev, linux-xfs@vger.kernel.org, codalist@coda.cs.cmu.edu, Joel Granados X-Mailer: b4 0.13-dev-86aa5 X-Developer-Signature: v=1; a=openpgp-sha256; l=923; i=j.granados@samsung.com; h=from:subject:message-id; bh=SGTnhgVPbRkVEntdcKFq1I6E3blB6PSwrb9JaawnFFQ=; b=owEB7QES/pANAwAKAbqXzVK3lkFPAcsmYgBlSj9M2ig+1rzDK3f26PkGfrXWs+L3sZHbcxuLZ iLSqjCt04yJAbMEAAEKAB0WIQSuRwlXJeYxJc7LJ5C6l81St5ZBTwUCZUo/TAAKCRC6l81St5ZB TyqTC/9Uoc1Mimxa39eNT1hPi8AUMLHAwsLHAs/0Njg/O4yNK+y9soM5dgjUElmwbiilSzCoF96 KOrLzOVWdrT8x5EiJajBmIczrpnvFo2XR1q59Tdg8+dVfzfdBKf9810BUXm22LDrhR5GCrfUjIe WI/w8QEvhxTRKvMJ5RUVl2jeeid8nF4ujb09LKlQMcj8mWT2+Dky7Y7C1J+AYI6fUSkT1SYRCGh ffoxN9L3S8Z/p3QRid2gFhunhJR3srSt3zGaLSwjJ/uQem0RFk0bHeGNq6mtq7H9PGnx7WrBq2Q X38P2PTXPDPOJW1aJJo3JV4J6I9ZJXvvc9ICJ3Wwd4yjd6sC199Oyu5j8fs9zXXlGKMoJbR+6Ua U//6ZueugQgAELb5QYH2rbjFeKAdSEJMotieMRJX/EXowVpmwUtie1sugGTqE0lBeQj7YcSl0It omT8aMtMmJ7/fay2nrRV3e63CCMFfc9EOjGkjEX1MMFnzzyQv14byTNJhE303H6qq5M4A= X-Developer-Key: i=j.granados@samsung.com; a=openpgp; fpr=F1F8E46D30F0F6C4A45FF4465895FAAC338C6E77 X-Endpoint-Received: by B4 Relay for j.granados@samsung.com/default with auth_id=70 X-Original-From: Joel Granados Reply-To: X-Rspamd-Queue-Id: 467D81A000B X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: ia576szge8655auaeggbhroeisj83guf X-HE-Tag: 1699364691-879593 X-HE-Meta: U2FsdGVkX191rvMWVZzQ197rSwMQy0Uqq+GJqaGQLExgE2vH4Hd8VPMgmNfUoCSZfIIZS0p2z3lMikUTDR0PF2J1mslEbjG06jthzgqrE+ULRSNYb4tdafxq7rFItZxNuyyQy++3UNMhyA2OsrNlEPIA5TPQJ8Btxue+MjwuKPhw1us/b0q856M5CMnRlRbz/NmoGge+/k7Jbp6pK9pdv70snr+Cfae8xCxapXK7ViXbPXP0kUWbSr9p0dAhrYntxg4LLWrm/IJKTvubiQ3tdHV5mBiJsKH2gwH9qi8GtUoJu7m9oELvrD1kIaQkpbn9gg4e80Os26V9VhzMNA0Ljfy3+dbtdY709xqs785FaQMMf0vFIAxpI8dwI00z0hjD5JncqGti64akkUwuasKNLKpEvehnAVPIan35CrKBppvndWXyTOWbFBIEBBWte9wA3+EqLVOM2vrgM/FyIWQh4WEIaG2s5TSRS7y/b5oCblTuHW21aWMPu1744Sf3bPXMPHVBCotJZ5Yz0EHqh9/sE5c5ZGFvIqtOvHuA6fdS0if5Pvru0rIcb6NVFRl0io457NBPJ/esTZl6pyKU38OU3ojhRwoEJFEenCIuIV7MDTDTaukhmA3EnAasKimrFvfSkRimcEJtxTtwYwXxgopvmYqFhrpnThv8d2FB7TBoatElLaHIC2eLaTLPkf47+mlZv7RkkSEu59Ai9a0DXvMD/k2i/NXUOtXiYtmwXLT32KeEfMwUR/ce8YTmHiWPtvEpogBd7xmjN21gI0HZp+qLJMwwxOHRolsXMwilEKdLMk3+MvncoG1nnJEHfq2f0EjWc300nYiGeW6HhLRjTRb+FjG2Ii+joi2OgNuZclV6FPdbWYHF4hOfXHiVneAdlY2l+I22+718J6pCkFKF8AXP2tZ5b0VfnPEVIuEa2jxFv7ltq+OVmhi44dfvmeTNdrXiXr2dugTDZErkT5/HTrA I/Yofl4b OuDrGg/x7ZbTYsgnn0TWSZ3/i9HmSbrPnBEWA22sMl+LT+/GZExYA8JbD3HPDGJheHtisG7s39J4DBPCK3hJP3TkeIj9OXdh4zpj6o8uYVg7PSW2BrRLPbiWgiNc2Sh2jaz822E7w9PZ1sZBDS+fTuOe4fR0MkB5UPkGyQzOgZOtisCZ18VBeowi8crJOtDNKfHYEjvN0wfCHoRO0Ax5eH07dzugR/HMfLbFVV0R/xhDZB3U2B6S+PNeCG8Jr9tl+r2hwIE4HDvaohu4Or7HJMrZkjYEqv1BrUVyMv15SeowVS7eLK1VGfGQB2QuL0XcH/JYTt4judtF3TylASys1Od8joweb12C5EOcqAa0fO739Hc1WAolXXItRgUE1ENzoBY+8bHL36CT+ALCRM9jSbV5iNUh+Q2VCfQW0t8BN8d9qo0HhystDDcbB6dTTPv94an66phRGTtuGHmPMMuMIB/l4FA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/) Remove sentinel from cachefiles_sysctls Signed-off-by: Joel Granados --- fs/cachefiles/error_inject.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/cachefiles/error_inject.c b/fs/cachefiles/error_inject.c index 18de8a876b02..1715d5ca2b2d 100644 --- a/fs/cachefiles/error_inject.c +++ b/fs/cachefiles/error_inject.c @@ -19,7 +19,6 @@ static struct ctl_table cachefiles_sysctls[] = { .mode = 0644, .proc_handler = proc_douintvec, }, - {} }; int __init cachefiles_register_error_injection(void) From patchwork Tue Nov 7 13:44:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Granados via B4 Relay X-Patchwork-Id: 13448706 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68A10C0032E for ; Tue, 7 Nov 2023 13:44:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D7BB28D0047; Tue, 7 Nov 2023 08:44:51 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B2FB48D0040; Tue, 7 Nov 2023 08:44:51 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9C1498D0047; Tue, 7 Nov 2023 08:44:51 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 7BCB38D0040 for ; Tue, 7 Nov 2023 08:44:51 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 431AB1CB676 for ; Tue, 7 Nov 2023 13:44:51 +0000 (UTC) X-FDA: 81431278782.15.2CF50D8 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf17.hostedemail.com (Postfix) with ESMTP id 82C4540006; Tue, 7 Nov 2023 13:44:48 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=aEVfle01; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf17.hostedemail.com: domain of devnull+j.granados.samsung.com@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=devnull+j.granados.samsung.com@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699364689; h=from:from:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=9x7m2aZmHPMfCNES/3aaH5pH/5Dux0eaP78Puepx/vE=; b=Qm09TP4ksNh/EAxsTMMiE8UeKCzHoy2EUXmDtaz5jXbwd04T9ItNC/D//B62UO9H04jW6z 5ro85Wv7dtbxgOHBnjdnzhwn3umA8V54DE2kpKKIKJpaG+p41hesIIibtcTt30q6aCieem rfQf7iG/oG17Il9ZckBFL1Rx9kccPJ8= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=aEVfle01; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf17.hostedemail.com: domain of devnull+j.granados.samsung.com@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=devnull+j.granados.samsung.com@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1699364689; a=rsa-sha256; cv=none; b=qmceTTKdXbUjoHpbuOt2RSEyd8GBMmtupEkIjIoAMvq45AJuwKe64HzUX3sjNcJ6NlwHx5 i5WJP3Tmad+xOx4+LxEqpLIeQ9R+q8uG9udfruCbWSEKBM7t61koVTRQjIqX3ZpFA5wmZ1 bDPzMS1oGkbcfFrhKk+OmjFMs4rjDKI= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 755B961202; Tue, 7 Nov 2023 13:44:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 85995C433CA; Tue, 7 Nov 2023 13:44:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699364686; bh=rxWCD86XNSuDAvBsfXLMERxDl1CKS+dH3af8HBg07kQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=aEVfle01ejHZcEGy0MVOzTlRZzwhHmFN2WCj4tqs0IV6KaIl/4vdxJJ3CtdAMFSo9 ltgl9iZCMmHdYd83TSsvv1Y/mGTOA4NOQwb0Hr4uAZrV+mbeNzTabxUdy/SU1T9GmX G+gWtuNOX7WD42yuq2Ekc1tWhYP3QfVMageHceT+wgbEHT1WiM+tVyVonFHZ9P/SsC EgprqyqsRJGa5m0dy2z5n2NBKqk7RgMaNvk6oGz3zMXAoRwT8/PJT5ofzghCcUAlRL I5mHaobYC1u/yMpTM9v/zFJvtM5RVz2M6itXaJlsbq8H5ah6KmV3kUPgN/kDYVBEW/ 2zg+d9ZUYuRcg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 674A3C41535; Tue, 7 Nov 2023 13:44:46 +0000 (UTC) From: Joel Granados via B4 Relay Date: Tue, 07 Nov 2023 14:44:21 +0100 Subject: [PATCH 2/4] aio: Remove the now superfluous sentinel elements from ctl_table array MIME-Version: 1.0 Message-Id: <20231107-jag-sysctl_remove_empty_elem_fs-v1-2-7176632fea9f@samsung.com> References: <20231107-jag-sysctl_remove_empty_elem_fs-v1-0-7176632fea9f@samsung.com> In-Reply-To: <20231107-jag-sysctl_remove_empty_elem_fs-v1-0-7176632fea9f@samsung.com> To: Luis Chamberlain , willy@infradead.org, josh@joshtriplett.org, Kees Cook , David Howells , Alexander Viro , Christian Brauner , Benjamin LaHaise , Eric Biederman , Trond Myklebust , Anna Schumaker , Chuck Lever , Jeff Layton , Neil Brown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Jan Kara , Amir Goldstein , Matthew Bobrowski , Anton Altaparmakov , Namjae Jeon , Mark Fasheh , Joel Becker , Joseph Qi , Iurii Zaikin , Eric Biggers , "Theodore Y. Ts'o" , Chandan Babu R , "Darrick J. Wong" , Jan Harkes , coda@cs.cmu.edu Cc: linux-cachefs@redhat.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net, ocfs2-devel@lists.linux.dev, fsverity@lists.linux.dev, linux-xfs@vger.kernel.org, codalist@coda.cs.cmu.edu, Joel Granados X-Mailer: b4 0.13-dev-86aa5 X-Developer-Signature: v=1; a=openpgp-sha256; l=11575; i=j.granados@samsung.com; h=from:subject:message-id; bh=Bp4t+hG4KxriN9ysmR+FNphfogz/Zbj5hCur76JNJk4=; b=owEB7QES/pANAwAKAbqXzVK3lkFPAcsmYgBlSj9M0gQQGdSO41F/tFzCNJiybCW5DpRQbuKa+ 3ea3SYJrneJAbMEAAEKAB0WIQSuRwlXJeYxJc7LJ5C6l81St5ZBTwUCZUo/TAAKCRC6l81St5ZB T/0OC/9NF1yUjynIukW4xr4twuJ6RJ7ZlhvpJGC6JFQ/ZnDqy/dY+psj3a4/wijg0cE2EPQ4VaJ fQyJD54QGHossklBLCKorZRgt9JPVw9KyJNYgppTSckcQHKOwF8AOODgWcdZ+RrYaLhf5HGXtZy y2QHvaR0ohmk/HLtyfg03UWXL4DyFtgFx6YdRWY638ntmc/xy9Wd8uRdKojRTMObLLwN1qHA77L IjnrJAJhSB4lmPBWm9ltGGjq72j5T9fk/1Za7uRO0IKviticlarAPXVIdG+GfEls2+aBT4/WKrZ ebNPqsZi0hoG3pDB4Pgrphn2H1NmY5rMpsiNPbQHPNeoukza+Adxpp+goAD5bCQeaiKknjKUU+E iNiuC8knteEAjr8rPMclNDZ9CmwWMsnOT/41BRAk64HXWI1GbBK6ZAZndd7CWScYNXOP+3pATcq yUiolFbUN81q008Dai2JW3lBWAifZMid5PNbu5Lw7ouLwTy4kxS8//ZHDjr0Utld25CQM= X-Developer-Key: i=j.granados@samsung.com; a=openpgp; fpr=F1F8E46D30F0F6C4A45FF4465895FAAC338C6E77 X-Endpoint-Received: by B4 Relay for j.granados@samsung.com/default with auth_id=70 X-Original-From: Joel Granados Reply-To: X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 82C4540006 X-Stat-Signature: euznej4o48ichadt6eeypfesbfbbz13o X-HE-Tag: 1699364688-213889 X-HE-Meta: U2FsdGVkX1/ZleP5YX6nPRezdQpmM2jgzrAiepIkbTnhLMCmiRmzmceK0lobfdDVeSKSSrQ9gaif7cUyXN53JxZ0GaklN96Vt37klwhTnIBX8DelSkK2v2V4Pw4rmxojDbAF7YOJcjKlP8plSJRrI6YPknhaEX4zh7bBcrzZagDh4aLuooF1/jEw8GfMXrtxlx23mySNt/tFz994mdLh0fb3OT4/em+ywiEvqy9+5sFeHt/6e9Ywr+CMtHdonFt35JW/BoOVPDtcZAiDTVKGQ9+7HR7wLB7suhNe6MQl2mT4wCHYlwhJ9Oms2PLEsJEvCMcEwQwC8YKUQdnkGbE0Aq6XHd7hr2FuTH/GA0LLbQnXID5BkBAXbMIBlDpxvxdtEX4Rv4NaLsWqD+MnTN1WHi7ArL+vWfhfZGf1yuFp1FZ0Z4aF3SuUIJQ5O55T+gAE5Xlr40YJbbHHp8r+cXZo0nfawRcA9Drt9kEq551zPxe94loc1dRuMKIFSuG9g1RtLycdXc+NqOFZUz/ZCc4kPvyLJesqdVDSf6YQDTA5cszO+xcF3KWZrbtWuyvOytW4icKd7xtL7kGv6ubY/re22V8gTqdefGAOXHwqgx5W6e8eCsPNPkEzzxBZQ85LHo0P10Nf0iXjzEYVY0wgO0mc4uHniy2bSZ9c5tyvI6/bt6gtPlbKtGxeW0osUIlE8uT+hFF0EsI9k7G9FzVkZWhPwtna13DSutqWFecDiZw/dT2ZfKzCvdXzeBsA/skwo7+ACYpBOmmYRBMy8q+2bciNVyLxzdWtHH4S1FFB3fmHNFN7TV/Fdcl+yUv6hOue1ttRDysRU+LbP7kbNme+I3IFJVuBPWt8ilfrBU2Z7t5Zh2oj8LndDFp5v2yTo7iMu9ILDdiK4nmhONr7KHxqoo0Qxe/MGMNl7gVS1l1CaBXHs3J+T3nEKPhP1/UCejq1lYeLBzFG+8z9BRritcdgrWK /fCVBsUH mQXzzieggGhRNWj4Q9hKOeLLwqQsEJ2T/q/K6jNtOmLN24gJb1G7+TseGWzOXEgcVf/eTHiQZN6mvJ0aLWNQ5szrKtUQsBQZgMSzKgjxpQD5wpAKrw7OPKFuJnNoB3E/iBySRBeCuBPrFyOZoMnovCNjW43VaUcyYbh3eCRtQrVhmBeEcvZNYQrALtWfl4psInqWjMOU8vQ5/Z/0BKBcl4I+Zv0t/imrXDJuUY4uGVsz/IMYw11HEHq1cd+/0aOzTEkqMMNk+Pk0UhNb2T8bVXSIzbmM+2HFOfBnx5ULtOU6vMIprA61IMfmkmvE7M7yEqQGZzY/W3Cy/At6SmOouj3eXa7tCtyCN8O5hgM/RA3/5Dh8ufBGWrsiuvwgDnoqDv4V9a6kbdvqc+1rO6MSe50w+0z9opMPklkhCkUHV/xFGLg/yU8r1fkKN3UT5uL8gXFCitOPR4BH0AQq3+bLghTI/5A== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/) Remove sentinel elements ctl_table struct. Special attention was placed in making sure that an empty directory for fs/verity was created when CONFIG_FS_VERITY_BUILTIN_SIGNATURES is not defined. In this case we use the register sysctl call that expects a size. Signed-off-by: Joel Granados Reviewed-by: Darrick J. Wong Reviewed-by: Jan Kara --- fs/aio.c | 1 - fs/coredump.c | 1 - fs/dcache.c | 1 - fs/devpts/inode.c | 1 - fs/eventpoll.c | 1 - fs/exec.c | 1 - fs/file_table.c | 1 - fs/inode.c | 1 - fs/lockd/svc.c | 1 - fs/locks.c | 1 - fs/namei.c | 1 - fs/namespace.c | 1 - fs/nfs/nfs4sysctl.c | 1 - fs/nfs/sysctl.c | 1 - fs/notify/dnotify/dnotify.c | 1 - fs/notify/fanotify/fanotify_user.c | 1 - fs/notify/inotify/inotify_user.c | 1 - fs/ntfs/sysctl.c | 1 - fs/ocfs2/stackglue.c | 1 - fs/pipe.c | 1 - fs/proc/proc_sysctl.c | 1 - fs/quota/dquot.c | 1 - fs/sysctls.c | 1 - fs/userfaultfd.c | 1 - fs/verity/fsverity_private.h | 2 +- fs/verity/init.c | 8 +++++--- fs/xfs/xfs_sysctl.c | 2 -- 27 files changed, 6 insertions(+), 30 deletions(-) diff --git a/fs/aio.c b/fs/aio.c index a4c2a6bac72c..da069d6b6c66 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -239,7 +239,6 @@ static struct ctl_table aio_sysctls[] = { .mode = 0644, .proc_handler = proc_doulongvec_minmax, }, - {} }; static void __init aio_sysctl_init(void) diff --git a/fs/coredump.c b/fs/coredump.c index 9d235fa14ab9..f258c17c1841 100644 --- a/fs/coredump.c +++ b/fs/coredump.c @@ -981,7 +981,6 @@ static struct ctl_table coredump_sysctls[] = { .mode = 0644, .proc_handler = proc_dointvec, }, - { } }; static int __init init_fs_coredump_sysctls(void) diff --git a/fs/dcache.c b/fs/dcache.c index 25ac74d30bff..bafdd455b0fe 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -191,7 +191,6 @@ static struct ctl_table fs_dcache_sysctls[] = { .mode = 0444, .proc_handler = proc_nr_dentry, }, - { } }; static int __init init_fs_dcache_sysctls(void) diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index 299c295a27a0..a4de1612b1db 100644 --- a/fs/devpts/inode.c +++ b/fs/devpts/inode.c @@ -69,7 +69,6 @@ static struct ctl_table pty_table[] = { .data = &pty_count, .proc_handler = proc_dointvec, }, - {} }; struct pts_mount_opts { diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 1d9a71a0c4c1..975fc5623102 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -322,7 +322,6 @@ static struct ctl_table epoll_table[] = { .extra1 = &long_zero, .extra2 = &long_max, }, - { } }; static void __init epoll_sysctls_init(void) diff --git a/fs/exec.c b/fs/exec.c index 6518e33ea813..7a18bde22f25 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -2167,7 +2167,6 @@ static struct ctl_table fs_exec_sysctls[] = { .extra1 = SYSCTL_ZERO, .extra2 = SYSCTL_TWO, }, - { } }; static int __init init_fs_exec_sysctls(void) diff --git a/fs/file_table.c b/fs/file_table.c index ee21b3da9d08..544f7d4f166f 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -137,7 +137,6 @@ static struct ctl_table fs_stat_sysctls[] = { .extra1 = &sysctl_nr_open_min, .extra2 = &sysctl_nr_open_max, }, - { } }; static int __init init_fs_stat_sysctls(void) diff --git a/fs/inode.c b/fs/inode.c index 35fd688168c5..ce16e3cda7bf 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -129,7 +129,6 @@ static struct ctl_table inodes_sysctls[] = { .mode = 0444, .proc_handler = proc_nr_inodes, }, - { } }; static int __init init_fs_inode_sysctls(void) diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c index 6579948070a4..f784ff58bfd3 100644 --- a/fs/lockd/svc.c +++ b/fs/lockd/svc.c @@ -474,7 +474,6 @@ static struct ctl_table nlm_sysctls[] = { .mode = 0644, .proc_handler = proc_dointvec, }, - { } }; #endif /* CONFIG_SYSCTL */ diff --git a/fs/locks.c b/fs/locks.c index 76ad05f8070a..6ecfc422fb37 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -111,7 +111,6 @@ static struct ctl_table locks_sysctls[] = { .proc_handler = proc_dointvec, }, #endif /* CONFIG_MMU */ - {} }; static int __init init_fs_locks_sysctls(void) diff --git a/fs/namei.c b/fs/namei.c index 567ee547492b..fb552161c981 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -1070,7 +1070,6 @@ static struct ctl_table namei_sysctls[] = { .extra1 = SYSCTL_ZERO, .extra2 = SYSCTL_TWO, }, - { } }; static int __init init_fs_namei_sysctls(void) diff --git a/fs/namespace.c b/fs/namespace.c index e157efc54023..e95d4328539d 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -5008,7 +5008,6 @@ static struct ctl_table fs_namespace_sysctls[] = { .proc_handler = proc_dointvec_minmax, .extra1 = SYSCTL_ONE, }, - { } }; static int __init init_fs_namespace_sysctls(void) diff --git a/fs/nfs/nfs4sysctl.c b/fs/nfs/nfs4sysctl.c index e776200e9a11..886a7c4c60b3 100644 --- a/fs/nfs/nfs4sysctl.c +++ b/fs/nfs/nfs4sysctl.c @@ -34,7 +34,6 @@ static struct ctl_table nfs4_cb_sysctls[] = { .mode = 0644, .proc_handler = proc_dointvec, }, - { } }; int nfs4_register_sysctl(void) diff --git a/fs/nfs/sysctl.c b/fs/nfs/sysctl.c index f39e2089bc4c..e645be1a3381 100644 --- a/fs/nfs/sysctl.c +++ b/fs/nfs/sysctl.c @@ -29,7 +29,6 @@ static struct ctl_table nfs_cb_sysctls[] = { .mode = 0644, .proc_handler = proc_dointvec, }, - { } }; int nfs_register_sysctl(void) diff --git a/fs/notify/dnotify/dnotify.c b/fs/notify/dnotify/dnotify.c index ebdcc25df0f7..8151ed5ddefc 100644 --- a/fs/notify/dnotify/dnotify.c +++ b/fs/notify/dnotify/dnotify.c @@ -29,7 +29,6 @@ static struct ctl_table dnotify_sysctls[] = { .mode = 0644, .proc_handler = proc_dointvec, }, - {} }; static void __init dnotify_sysctl_init(void) { diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c index f69c451018e3..80539839af0c 100644 --- a/fs/notify/fanotify/fanotify_user.c +++ b/fs/notify/fanotify/fanotify_user.c @@ -86,7 +86,6 @@ static struct ctl_table fanotify_table[] = { .proc_handler = proc_dointvec_minmax, .extra1 = SYSCTL_ZERO }, - { } }; static void __init fanotify_sysctls_init(void) diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c index 1c4bfdab008d..3e222a271da6 100644 --- a/fs/notify/inotify/inotify_user.c +++ b/fs/notify/inotify/inotify_user.c @@ -85,7 +85,6 @@ static struct ctl_table inotify_table[] = { .proc_handler = proc_dointvec_minmax, .extra1 = SYSCTL_ZERO }, - { } }; static void __init inotify_sysctls_init(void) diff --git a/fs/ntfs/sysctl.c b/fs/ntfs/sysctl.c index 174fe536a1c0..4e980170d86a 100644 --- a/fs/ntfs/sysctl.c +++ b/fs/ntfs/sysctl.c @@ -28,7 +28,6 @@ static struct ctl_table ntfs_sysctls[] = { .mode = 0644, /* Mode, proc handler. */ .proc_handler = proc_dointvec }, - {} }; /* Storage for the sysctls header. */ diff --git a/fs/ocfs2/stackglue.c b/fs/ocfs2/stackglue.c index a8d5ca98fa57..20aa37b67cfb 100644 --- a/fs/ocfs2/stackglue.c +++ b/fs/ocfs2/stackglue.c @@ -658,7 +658,6 @@ static struct ctl_table ocfs2_nm_table[] = { .mode = 0644, .proc_handler = proc_dostring, }, - { } }; static struct ctl_table_header *ocfs2_table_header; diff --git a/fs/pipe.c b/fs/pipe.c index 6c1a9b1db907..6bc1c4ae81d5 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -1492,7 +1492,6 @@ static struct ctl_table fs_pipe_sysctls[] = { .mode = 0644, .proc_handler = proc_doulongvec_minmax, }, - { } }; #endif diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index de484195f49f..4e06c4d69906 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c @@ -71,7 +71,6 @@ static struct ctl_table root_table[] = { .procname = "", .mode = S_IFDIR|S_IRUGO|S_IXUGO, }, - { } }; static struct ctl_table_root sysctl_table_root = { .default_set.dir.header = { diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index 9e72bfe8bbad..69b03e13e6f2 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c @@ -2949,7 +2949,6 @@ static struct ctl_table fs_dqstats_table[] = { .proc_handler = proc_dointvec, }, #endif - { }, }; static int __init dquot_init(void) diff --git a/fs/sysctls.c b/fs/sysctls.c index 76a0aee8c229..8dbde9a802fa 100644 --- a/fs/sysctls.c +++ b/fs/sysctls.c @@ -26,7 +26,6 @@ static struct ctl_table fs_shared_sysctls[] = { .extra1 = SYSCTL_ZERO, .extra2 = SYSCTL_MAXOLDUID, }, - { } }; static int __init init_fs_sysctls(void) diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c index 56eaae9dac1a..7668285779c1 100644 --- a/fs/userfaultfd.c +++ b/fs/userfaultfd.c @@ -45,7 +45,6 @@ static struct ctl_table vm_userfaultfd_table[] = { .extra1 = SYSCTL_ZERO, .extra2 = SYSCTL_ONE, }, - { } }; #endif diff --git a/fs/verity/fsverity_private.h b/fs/verity/fsverity_private.h index d071a6e32581..8191bf7ad706 100644 --- a/fs/verity/fsverity_private.h +++ b/fs/verity/fsverity_private.h @@ -122,8 +122,8 @@ void __init fsverity_init_info_cache(void); /* signature.c */ -#ifdef CONFIG_FS_VERITY_BUILTIN_SIGNATURES extern int fsverity_require_signatures; +#ifdef CONFIG_FS_VERITY_BUILTIN_SIGNATURES int fsverity_verify_signature(const struct fsverity_info *vi, const u8 *signature, size_t sig_size); diff --git a/fs/verity/init.c b/fs/verity/init.c index a29f062f6047..e31045dd4f6c 100644 --- a/fs/verity/init.c +++ b/fs/verity/init.c @@ -13,7 +13,6 @@ static struct ctl_table_header *fsverity_sysctl_header; static struct ctl_table fsverity_sysctl_table[] = { -#ifdef CONFIG_FS_VERITY_BUILTIN_SIGNATURES { .procname = "require_signatures", .data = &fsverity_require_signatures, @@ -23,14 +22,17 @@ static struct ctl_table fsverity_sysctl_table[] = { .extra1 = SYSCTL_ZERO, .extra2 = SYSCTL_ONE, }, -#endif - { } }; static void __init fsverity_init_sysctl(void) { +#ifdef CONFIG_FS_VERITY_BUILTIN_SIGNATURES fsverity_sysctl_header = register_sysctl("fs/verity", fsverity_sysctl_table); +#else + fsverity_sysctl_header = register_sysctl_sz("fs/verity", + fsverity_sysctl_table, 0); +#endif if (!fsverity_sysctl_header) panic("fsverity sysctl registration failed"); } diff --git a/fs/xfs/xfs_sysctl.c b/fs/xfs/xfs_sysctl.c index fade33735393..a191f6560f98 100644 --- a/fs/xfs/xfs_sysctl.c +++ b/fs/xfs/xfs_sysctl.c @@ -206,8 +206,6 @@ static struct ctl_table xfs_table[] = { .extra2 = &xfs_params.stats_clear.max }, #endif /* CONFIG_PROC_FS */ - - {} }; int From patchwork Tue Nov 7 13:44:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Granados via B4 Relay X-Patchwork-Id: 13448707 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6165EC4332F for ; Tue, 7 Nov 2023 13:44:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 51C6F8D004A; Tue, 7 Nov 2023 08:44:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 310938D004C; Tue, 7 Nov 2023 08:44:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F18B88D0048; Tue, 7 Nov 2023 08:44:51 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id BBE5E8D0049 for ; Tue, 7 Nov 2023 08:44:51 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 93A171CB676 for ; Tue, 7 Nov 2023 13:44:51 +0000 (UTC) X-FDA: 81431278782.07.3D6812C Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf19.hostedemail.com (Postfix) with ESMTP id E87411A000C; Tue, 7 Nov 2023 13:44:48 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=oFTJ5WLB; spf=pass (imf19.hostedemail.com: domain of devnull+j.granados.samsung.com@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=devnull+j.granados.samsung.com@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699364689; h=from:from:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=o2CaxK92zok3gBzSEBzraG1QRD0Qw4c4lnLmPOAYs3o=; b=hVoLxJigU0fXyfHULKEYSwumzD8cZZN/qaZnNOr4TNWO2iVI/vLh9RREHQSotOf2CGlTgl qyFADGjfjiCvyREQDgbLCtrMAu8bY0pMRU+CIuVGhVhZRxFw/+VBCe2AqprKWgI4syTfdS YJVRZZHu10DsGWUFkhFrZW8MzfPrByo= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1699364689; a=rsa-sha256; cv=none; b=tqjUgheaZwqZCqGkfOhGWAiHFtPLAMqxySDTrUtN7dsINos47EHdHTX5Tthz/kJ+7PCRl+ ck4AnqRK0aemXaIA4IfRtxdUy2mICNkWNTNb57Vkbr2aq6p+bInQnM4IMRcQjZ91D1rQlH 2OaISXF7yJDAWa+GxlLIUQDJcNHhTZE= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=oFTJ5WLB; spf=pass (imf19.hostedemail.com: domain of devnull+j.granados.samsung.com@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=devnull+j.granados.samsung.com@kernel.org; dmarc=pass (policy=none) header.from=kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id AA46861224; Tue, 7 Nov 2023 13:44:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 936E0C4339A; Tue, 7 Nov 2023 13:44:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699364686; bh=Xj/qeNJ1fWTZ5t8tG8CiKkqyjuOspbgdeEVbMKEatVA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=oFTJ5WLB7vlFQRcquJ5uh9QbuamVM8WKMIV/pw4Xd8rfT0VxGp+9nySvqMUfIT85k jeZzDs7dDrDim5hsFqidsuy7UIvV4+jJ8yJeFGlLV83K7sDhPAon3CEgZJe28WiXU/ LCCN6o2VK85ipkpLoSjRiVG2tzpPv+FOSrsO4eRFSJoUoW7g7aTr0WMK1wrFzoVIf5 eUzraECuGYMnOa6MdeEofoNcsrUFgxtcDEMxuGxEZdMd8h2zRy59/0RLFbWB8FzaES /8eIG/5UkIkvcZK0M9b80kKzZcpJGZWOqfOTinUOONpBFnwDeWlR8PZXMrAKgx/LlP VeXIYRw5LcYvQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77B0FC4167B; Tue, 7 Nov 2023 13:44:46 +0000 (UTC) From: Joel Granados via B4 Relay Date: Tue, 07 Nov 2023 14:44:22 +0100 Subject: [PATCH 3/4] sysctl: Remove the now superfluous sentinel elements from ctl_table array MIME-Version: 1.0 Message-Id: <20231107-jag-sysctl_remove_empty_elem_fs-v1-3-7176632fea9f@samsung.com> References: <20231107-jag-sysctl_remove_empty_elem_fs-v1-0-7176632fea9f@samsung.com> In-Reply-To: <20231107-jag-sysctl_remove_empty_elem_fs-v1-0-7176632fea9f@samsung.com> To: Luis Chamberlain , willy@infradead.org, josh@joshtriplett.org, Kees Cook , David Howells , Alexander Viro , Christian Brauner , Benjamin LaHaise , Eric Biederman , Trond Myklebust , Anna Schumaker , Chuck Lever , Jeff Layton , Neil Brown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Jan Kara , Amir Goldstein , Matthew Bobrowski , Anton Altaparmakov , Namjae Jeon , Mark Fasheh , Joel Becker , Joseph Qi , Iurii Zaikin , Eric Biggers , "Theodore Y. Ts'o" , Chandan Babu R , "Darrick J. Wong" , Jan Harkes , coda@cs.cmu.edu Cc: linux-cachefs@redhat.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net, ocfs2-devel@lists.linux.dev, fsverity@lists.linux.dev, linux-xfs@vger.kernel.org, codalist@coda.cs.cmu.edu, Joel Granados X-Mailer: b4 0.13-dev-86aa5 X-Developer-Signature: v=1; a=openpgp-sha256; l=1106; i=j.granados@samsung.com; h=from:subject:message-id; bh=ep6ig3KsG/haTwVjLCKKm4Kk60+leb3CQTaGMwbdTjg=; b=owEB7QES/pANAwAKAbqXzVK3lkFPAcsmYgBlSj9MqPIIARlpG1B3CB33QBqVpFDk5COfTwoWh HqFk8BAtBKJAbMEAAEKAB0WIQSuRwlXJeYxJc7LJ5C6l81St5ZBTwUCZUo/TAAKCRC6l81St5ZB T8o5C/9te1uxNMdDRUp6GfQqK8yJSbjVLxDs0abTPfEjp57TX/AOdFOmrwiXgdAGkwDUpVY5rKg qp0gHNnyXGtehooFW3SxZUwwtjPSVXxpquEnkv8gCjhenPHbGBAmOakMeL/KnhQXmtTWdZmkUDx iQU5SlQjl1a/Gz8IFzQ1MUTKrwEwlvA6K1ytVD+PbkS+gTi8OuUnZcIYG/2j/B+n3xMKoPjIjq2 tda2fAiMgQpMxzcedyBjpK3EF4br8IF9NRBk+2eRARZ4TZBQbe3+d8x8c12d6nE8l1Dl6+v8XmC bF3irI5j7i0eA+ybQNI9qLEKv+ajjVTiVPDvndJhtvbFzP/002Ok8AvVDXnWNAfiNPPCg561Shh 0Fa85geyCxUZXk6Kn1GwDdUYeMmie6vRU3YJtYdyrXeujBUHq5VE2iTh29hNEoI5869gs2nrZBZ h/Kx8YXwlg4ru1KYYeSbg04EcMK0N8fGC5qDPrdmtWsu3hksyO0KsYOGOz4r0PfP2pK9E= X-Developer-Key: i=j.granados@samsung.com; a=openpgp; fpr=F1F8E46D30F0F6C4A45FF4465895FAAC338C6E77 X-Endpoint-Received: by B4 Relay for j.granados@samsung.com/default with auth_id=70 X-Original-From: Joel Granados Reply-To: X-Stat-Signature: eewkmyjfsntoamaonimqzx78c5zz6e1f X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: E87411A000C X-Rspam-User: X-HE-Tag: 1699364688-884535 X-HE-Meta: U2FsdGVkX18kZ2u40iyE5aL8yNrEBD/UietHH9pLgHp2bNPTGgxeVHmLtbAsjg5g2jNJGXGZ4wdJrpBIOYk1P8CqTF3RS6giTOJEfcVWxEuPSBKqiEam2PgZqz1pCf5HzPQxCA2FOxE5dukq6oNBvhcQwaWV5w8lo8QCYY2TjVozbQ99YSYkTSyyVFEZTlNIyEWlvGhW9uPU/NBQwasIqKbJlBVBRp03X4aKTJWwF1f3MNpyOaeGOGk/zaM5mg9XwXVvAkM+DPkqbRv4AYZEqEh43GDvy95lscKXHDly71dN1KFyCBW8qaNj4M2fLSwVY31bzcdiaAepKydEQlTVWOKaNipbPs1R5HVuoKxq12RjicliYaCaxbNqWI/BDCRc/+eWr7Fo/c3PP4TWKmfpAS4++H9g0SJIVZHTVYfK/8+OYpvTSpjAIF2lHCanGikNqT/iH9m1yqSuYv4rH4oAfyr0p9AH5ft2eRpQez8ySTAUXDuzNz9OV1sK1OQSG4zEJ7xRiwmjpZGc5MseIZf2g81Z7K+dg2rhzl24tPnw1qj8zFgfJxOEZnrwRSNoQmINOa2I/cXfqQb4vR9u59emN4npaVPxO1nN9I6gU6EUo+E9IW9zRIrtzrUOteQPue4YeYr/fmhUPErEa5YFcY17ELEFJp2QDBsqcoqqkVz0RV5p6ZkelMfseZwF/43qBdiec2VeOiOTNxZ7fuCPh+SnQIh325jwh0bIaU3Sks2THPeeOJewT9Sk4m8uL5h7u7PeSqF1+i2mg440HrE0sJCuW5VTHoZMoV0cnVxX8C6+Dkie84XLNDmPlT+ITIrH05a3sWAbM02SoaAO9Wi6LTzbBRKDyNJRrJgnTy5S8Z0dTWKpNzCfu6M50lMmg/X6/LSeGiTOFybsgMsD83yrJWqLXH1f+JMDsRxyUv0Ef9/OQErMvocjMgKTNT1+KkuvJDy4c0AO8ofaT24qqT5NqAV wlNJLErx ryatgXD/c2l+Lr6o0MBLKqAIfZfEb3Q3lfwv3ggm0twQEZhSW3FR9zhW4oY4nm65Cu1Tfw6JvFudediHdgi1SVCxkeaYTSCiNVliF1wUdN9h8kipGzfomOp5bXBMjxgggbrGP3DYqo29Je8sERsKidjigOQNLqpySwl0cZtReGkSQUUwL3Rt0BuuLg1NQLSFTKh3oLFv7LkIwF65kKd4QoC2wjSY157hJKNNUi+Vy+KKz82nylcOTPhMuP8PVVvQHb1UMREROVagfmSOf33bqDDTrYqavW6ux3y0AGZJowoHUXcrrIeMLRrfD2j6MtS9YcnFJgzwlLvEeP+tMuaqRpVg6oqSt79/IW88yoKTkFsGi51IcqUu8Uijv6XjOR3Ed5MlBHQ80hqKzPfUwUwtWq5eJcXFPEjpJI25TDPHUf7YS5rtbm13ds6ZX27n6ui2wAuKL99rtJFZ1QxItCR+0bfFs/g== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/) Remove empty sentinel element from test_table and test_table_unregister. Signed-off-by: Joel Granados --- lib/test_sysctl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/test_sysctl.c b/lib/test_sysctl.c index 8036aa91a1cb..9d71ec5e8a77 100644 --- a/lib/test_sysctl.c +++ b/lib/test_sysctl.c @@ -130,7 +130,6 @@ static struct ctl_table test_table[] = { .mode = 0644, .proc_handler = proc_do_large_bitmap, }, - { } }; static void test_sysctl_calc_match_int_ok(void) @@ -184,7 +183,6 @@ static struct ctl_table test_table_unregister[] = { .mode = 0644, .proc_handler = proc_dointvec_minmax, }, - {} }; static int test_sysctl_run_unregister_nested(void) From patchwork Tue Nov 7 13:44:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Granados via B4 Relay X-Patchwork-Id: 13448708 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AC50C0018C for ; Tue, 7 Nov 2023 13:44:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A62458D0040; Tue, 7 Nov 2023 08:44:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 94E0D8D004C; Tue, 7 Nov 2023 08:44:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5083D8D0048; Tue, 7 Nov 2023 08:44:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 272708D004B for ; Tue, 7 Nov 2023 08:44:52 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 05463C0194 for ; Tue, 7 Nov 2023 13:44:51 +0000 (UTC) X-FDA: 81431278824.05.3B5AC9F Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf13.hostedemail.com (Postfix) with ESMTP id 5AE822000E; Tue, 7 Nov 2023 13:44:49 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=dlXsqceI; spf=pass (imf13.hostedemail.com: domain of devnull+j.granados.samsung.com@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=devnull+j.granados.samsung.com@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699364689; h=from:from:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=/5gC05e4XMKulFisOTxjnxNVi6Py98899nGmP/7FMrY=; b=KUrAf1w6PlXHtMJHvMQkqFUtUsu75BO9Nq3YAABfCMvMt/bgUDIeLKDUdNLCBUFv4/OMUg U4GCFCLZ87XGjfWnX2eJb+UE6CE3CIc2RDjU/kdKHGpdyhts+AMD8wT6ksmCJE1+aH6qVB rvenxQoiW2zk3niR0pj9ErKWX+6HeEU= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1699364689; a=rsa-sha256; cv=none; b=XHMVojf9K/xSPhCIh/YkwFZbvhx7r5ymt0fHJZiwxGwviqnEtyp6S6lfs0JBg4zC30iR8+ ZcEJJoPbtqtvy3NXR1nT1I4Ca/zjzIsd6AJsaG50Vdpuq8oDkb0ayTto626QW518pGVjva sVnzJF2Cw8KdDYJk5N9vtu8E5dtvMUI= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=dlXsqceI; spf=pass (imf13.hostedemail.com: domain of devnull+j.granados.samsung.com@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=devnull+j.granados.samsung.com@kernel.org; dmarc=pass (policy=none) header.from=kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id CED3561204; Tue, 7 Nov 2023 13:44:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 9C744C433CC; Tue, 7 Nov 2023 13:44:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699364686; bh=oGAuwTicPekfqewJ5UASm1lSeWTImG5/jlwpiQOtNH4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=dlXsqceIaRjkuA5IeJHu+LQu++YmsXVE3wOhks2vu6pwQW2Yuf8y3fuqcGTDezhrh nLIn/Wct44n580U3lOHF++guKLo57NBlrLcH+CP8dKEVLZ7TvYqaScDG5YrvoJRlcF QgPdHEVU+DDWMpO0z/+MCEtZHfqSGC/yF8neQyIq+b23aVDal8cEH+L4fAKBF9V1t4 cmYfhjd0G/XQ0kFMpKXwcp70TJIBGNrkZ8IQvIBRH32uQuYnIFVy55l62OUBQvZyJX 7fYSb8VX8Bikhd65TQJy/X1zRGf2dQSPireqCR6fcSnCtrafJhV8meTgijuZW9O2fr kaneABMaHl3sg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 876D6C4332F; Tue, 7 Nov 2023 13:44:46 +0000 (UTC) From: Joel Granados via B4 Relay Date: Tue, 07 Nov 2023 14:44:23 +0100 Subject: [PATCH 4/4] coda: Remove the now superfluous sentinel elements from ctl_table array MIME-Version: 1.0 Message-Id: <20231107-jag-sysctl_remove_empty_elem_fs-v1-4-7176632fea9f@samsung.com> References: <20231107-jag-sysctl_remove_empty_elem_fs-v1-0-7176632fea9f@samsung.com> In-Reply-To: <20231107-jag-sysctl_remove_empty_elem_fs-v1-0-7176632fea9f@samsung.com> To: Luis Chamberlain , willy@infradead.org, josh@joshtriplett.org, Kees Cook , David Howells , Alexander Viro , Christian Brauner , Benjamin LaHaise , Eric Biederman , Trond Myklebust , Anna Schumaker , Chuck Lever , Jeff Layton , Neil Brown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Jan Kara , Amir Goldstein , Matthew Bobrowski , Anton Altaparmakov , Namjae Jeon , Mark Fasheh , Joel Becker , Joseph Qi , Iurii Zaikin , Eric Biggers , "Theodore Y. Ts'o" , Chandan Babu R , "Darrick J. Wong" , Jan Harkes , coda@cs.cmu.edu Cc: linux-cachefs@redhat.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net, ocfs2-devel@lists.linux.dev, fsverity@lists.linux.dev, linux-xfs@vger.kernel.org, codalist@coda.cs.cmu.edu, Joel Granados X-Mailer: b4 0.13-dev-86aa5 X-Developer-Signature: v=1; a=openpgp-sha256; l=826; i=j.granados@samsung.com; h=from:subject:message-id; bh=EW/W6zZslOuVBpUJvlaE+2AnAGMLV/WhhzCxxx+6aVM=; b=owEB7QES/pANAwAKAbqXzVK3lkFPAcsmYgBlSj9MEeSJSagXc2LHP4reG5okoVcP5ennQM0zz fLKCMA3zM2JAbMEAAEKAB0WIQSuRwlXJeYxJc7LJ5C6l81St5ZBTwUCZUo/TAAKCRC6l81St5ZB T+MEC/4ngnTz5jsk7DKSLQFBRxoyRmnmgQuCFEm3xLruOFhQ58fFGc3jLVQ4SRKcyMbZVYLnA/7 92Pua+W916xF0apdkWSutPgZSVFWhE7LqCQB7OANStgZhAKgHWrkjFB8/KPiCDUTdrzG1jdHBd7 qmw+js8kBekSLH5uC319PDTNTNRfVmu6Si2XVh4HdvnLe4xaz5yzzquq8kaZOcJEbVlPnVXBo3E CAy3CAkgj3SWfAzXFyi+Q3xPTvEdBH0vnOqRGR9mIcACCxTVTBlK/TyANrw989cT0ksz8sPCcvE MgG8c3gs8wYgbfHMjfQUURrWfZHWTUBhYBXrmma7XkJ2wabGHM5JWzXasay7RGMldjFLEAGwtTj Su3+/SkuiwYTpDZc5V8iLd1ewA6g1MSpAWHBJs0BBIMYPu2w52V9pE3e8/bK3QVeSs5NqBeZtYp qsORxK78HHwjx16fR/OQVoFLy3Nllnz0WIJoDHWKSbERarg3ey4XX+y7unPjuDW8RiLOk= X-Developer-Key: i=j.granados@samsung.com; a=openpgp; fpr=F1F8E46D30F0F6C4A45FF4465895FAAC338C6E77 X-Endpoint-Received: by B4 Relay for j.granados@samsung.com/default with auth_id=70 X-Original-From: Joel Granados Reply-To: X-Rspamd-Queue-Id: 5AE822000E X-Rspam-User: X-Stat-Signature: c1tuzfczyhjmxqqjede9ahy49pwq7e6k X-Rspamd-Server: rspam03 X-HE-Tag: 1699364689-682033 X-HE-Meta: U2FsdGVkX1///96LBtYZYwaIPQpf+zTuSW7YMTpZbIuswkQgb2iIgosb5m8+v9LgrdEUQaZjc9CaCMOqLSC2yM9gEdF620iTd/uoukymE3NBnFcNaNuRKsDtYoDEdzB3CdhKJenU9mZmrPVBXyxHJs8HyJ+pXloCmZNHyV7YTDT8iaomlsuK6/jghf/vbTS6n4e2UmwsM+nLAvvrxIER7EUGX2ShpAG6BdRCHcVyRsBqAclXfoezT6uhWeXecdZdxJVgZ8YdA7NQKStl3GRwc4TMvxuEUDM9beNEBinu4lfcOEZsyl4Nk5aOK8OMFcNzgaYEtRTclbfVu67vfRjaceiHg+fHFu2GENS04Ng6ByRjiNfT78arePF1zJ/ykveSm3n2/kSsswe7kaBpnDQ7HiNK5iLJSOlSZu5y5gXnKpuS+trbLa7LOxP+mU2gQ1dJEYKBMhndEjU5pfr8fp/GFxU18sanK+j6YDLOB5Rmeawckub3p7iAoQvnES2oPZ9xTr9kaFE7rPaMfh4Atz5R4+LHUTavksyh8uzrJ5uygpshWhR8yr8CG7D8fCzmkJIqytQto8cKK9MFgVb7YHX0hkY0al2nuuzqCfZ2RaXHbpquQDZJ/Mx7JU8qS03+jq126oTL3Q64g2aPI/50Ia0Mbw+srR4G7zaah6o6n9tfeS+9Wadg1tNusLZG0QCWMqhF4HXg6GrGV+C0VjjX3LCNp2lguA4obXaiH6d02KgfIziCsC61FNA2xUUeCZN4ANsZV4bYAZv4fKXy8ZPme7+SO8LuY2EvRbsXE22ZLpH8T1Q+/RmxvZLTIL51DfXtqWUvezVxMiVHhRjmNBmEHa7dVI1f0M8KBaG/gfsJpe2OpkihzIUKbb10EnwrubbjikLYOq+uoxxXjezg0nNoDkV2Nt837hqQ2jgDBj2rpAAn8nE+pF34VdKtfCodPKxx7bUg/mMzOe6Fu1Ag9kXU/zq 5pdJw90p 8YPK+ClDg73hMNEl1ThKoUzGCKGwrYugjr+pvI8Xn4g9xhBSAbE7OVX7GDStEkAHnEHPDDvh5uyi870vut9wqakwdmqaebLFp7JoGXLcBRCqOtjBmJSehCoHjnDQiH8TNCyn8jx34UiTM8/HFrpfX2ie1GXPbru1Jos6rhJY6cEsNAFSv9uQRYhjvOffhTVolz8O5uCUFArVS8CRcgPqoYaKkYyM2jAIuqd/5SOuud/B6dorijeY+DfRlcMuSMG88pPvEBRtruYPe7t9nEVa5T9mBUqXcpncKExhhgjT7r40S2nNxALZJS1CTgWeSO7kbC1A659kjL1bu5V4HwwOsEQqJ/qjlwamQ0r54gmG4k6TC5eofMsEyR/XH/jmb7I+fy37YtqwS0B3zrr+27bF3eovfue581a0aZB/XLSe5n4TYyuy+gw1hDRlJH34DxNPvipoKoqavkAl8RDMUSRavreL6dg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Joel Granados This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/) Remove empty sentinel from coda_table Signed-off-by: Joel Granados --- fs/coda/sysctl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/coda/sysctl.c b/fs/coda/sysctl.c index a247c14aaab7..9f2d5743e2c8 100644 --- a/fs/coda/sysctl.c +++ b/fs/coda/sysctl.c @@ -36,7 +36,6 @@ static struct ctl_table coda_table[] = { .mode = 0600, .proc_handler = proc_dointvec }, - {} }; void coda_sysctl_init(void)