Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp4148126pxm; Tue, 1 Mar 2022 12:18:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgZy4L9PsxU0amRljQdShgB7DutvXr7NW/zFbo3O43L4YtIfO7sQrjA0cGdFsWd7M+nPzM X-Received: by 2002:a17:906:b757:b0:6d6:e990:b0de with SMTP id fx23-20020a170906b75700b006d6e990b0demr2813250ejb.603.1646165901659; Tue, 01 Mar 2022 12:18:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646165901; cv=none; d=google.com; s=arc-20160816; b=EALnS3wDSVBVRoF3+1a6pZvLXc9allF7Hu03uAmuT4hlGxPIlJN1VZuPw4hzxqkmVm /wKEYjQbFmPE2ectkX2XXSvus5KXWPszYrVFMGA1XCM2Cn/36o1w8Y3L4Gvc9poc7X+X pgmMK8ZYiftOZhUe19HL+5DY2whSC6W+EnjvVAT7VSDHwvH7BAy0zhaxr4tH/yL6mGBP CNl6i0+yHCd12xa26ppG6E2AHwnOSLeiLMJfJZ5g4sikFQXm5jJMql9+/s/vZBrovV1q QDbCMRXXqtnh1PN8YI/QNTFWIfY5O1Rto3G1ubMX9R+LzxJ9VXglikDrRK//mLz20vZE csxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=x8QboE68qufGVCeh7eGFRudjtwH2eRrn2yzIYOD5Vgw=; b=vZg2eFlLoEAd882Id5KkRyvKGh09LCQjYqmO4hEiXIhggzk1kkljH6sL5FJlPdnIrm 03YTyrDwXHWCx8BKLFWJrRdYQtww1dxEsGsGthYB8VECosdO32zQID74RW9JMFsBeJpL qKkzDvdIemIlgjYlJzYk/rBzh4ButZdE15p8Mq5Qp0NG0lj2BmfijmER/pfs9eZH0VCm HDM4xccxXouE0PzP2LW3M+jClFn3DaYk/LNI/LyXxzIRHZsGhXsLz8e5dUQ7PnvBWXrn sHAFkBzIWY0SpsoqJ7PzsQ61IwwaOsL2U9YEVF4KYtOUK5qt1W45uBWFmHmBovS1KMw8 B3DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=c+eqLUh4; 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 a13-20020aa7c80d000000b003ff096a8b7bsi9498288edt.376.2022.03.01.12.17.56; Tue, 01 Mar 2022 12:18:21 -0800 (PST) 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=@infradead.org header.s=bombadil.20210309 header.b=c+eqLUh4; 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 S236577AbiCARpd (ORCPT + 99 others); Tue, 1 Mar 2022 12:45:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232482AbiCARpc (ORCPT ); Tue, 1 Mar 2022 12:45:32 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 042032BD6; Tue, 1 Mar 2022 09:44:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=x8QboE68qufGVCeh7eGFRudjtwH2eRrn2yzIYOD5Vgw=; b=c+eqLUh4cgb5zqr11iFm9AZnmi Az+zXe+HI8JwYuwddDIEUrK+6pj89VqZ1zXyDWCxMXCqgukYtTSbZ6vZcSYc+w5pTSSfcBc+jAZYF VkjhXX3c63bV892yWwICRDsLtO8mae1whZyrP+gdP7PklZzVviEmf+ux3H8d0KQ20ptp+nC7VKXVu OAt2wpQdQ0ce47qSwj54FTZ7C5udFJ8usFEcEO59Uu8WCY2ZKg4lUW8gYEDh783WnEmNftT6npfTD 6eyqy94I8K5j3NL75Ayjji3npsZ0p29/YReuXtVRXgcJH72TbDwrbCrK6Q/tB6YA0pyC41bS3dj2z O9JxlSrQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nP6Y5-0006Vm-SA; Tue, 01 Mar 2022 17:44:33 +0000 Date: Tue, 1 Mar 2022 09:44:33 -0800 From: Luis Chamberlain To: Meng Tang Cc: keescook@chromium.org, yzaikin@google.com, ebiederm@xmission.com, willy@infradead.org, nixiaoming@huawei.com, nizhen@uniontech.com, zhanglianjie@uniontech.com, sujiaxun@uniontech.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 1/2] fs/proc: optimize exactly register one ctl_table Message-ID: References: <20220301115341.30101-1-tangmeng@uniontech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220301115341.30101-1-tangmeng@uniontech.com> Sender: Luis Chamberlain X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,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 Tue, Mar 01, 2022 at 07:53:40PM +0800, Meng Tang wrote: > Sysctls are being moved out of kernel/sysctl.c and out to > their own respective subsystems / users to help with easier > maintance and avoid merge conflicts. But when we move just > one entry and to its own new file the last entry for this > new file must be empty, so we are essentialy bloating the > kernel one extra empty entry per each newly moved sysctl. > > To help with this, this adds support for registering just > one ctl_table, therefore not bloating the kernel when we > move a single ctl_table to its own file. > > Suggested-by: Matthew Wilcox > Signed-off-by: Meng Tang Please extend the commit log to justify why we have to add so much code, you mentioned it to me before, now just please write that in the commit log. Can you really not add helpers first so that these helpers are used by both paths? Luis