Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp584460ybk; Wed, 13 May 2020 07:50:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg6RB5fIFsEZnUgGob+/SRpMiUuLSLJURDnpBnClakh7sxvzQvnSUJXJnI12b0T8f346uI X-Received: by 2002:a17:906:f90d:: with SMTP id lc13mr6259501ejb.367.1589381443610; Wed, 13 May 2020 07:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589381443; cv=none; d=google.com; s=arc-20160816; b=F6LIgjnpJK34ZnxQ+UlqxnfEDl1RX8kLrwzSThmrFTGZynEXFhQTA82knpspP1RYNa noiLWxMaz86WVcqSsaBKdxWtStgOou8U92QoHCpR2C3Vaqo46cbm7qzbXcnCpl2B96IB 4uoivOxWH+Ry9B+uvek3fbA4VrADVCnpMcVMrQhKVkS5GefbjLNtnl+E21kOh6iSiayR Ls5V4N83EjTMTeTWNMzNz+HURlgiAKFuQaJfgQuWMAI1vVVxEiMxr+hkGi+Yev9qGDrD RYe9wOEwKjGtemRYfM1bj28ghsTks9f9YLAZQ/f1HHuJ888y4/qmrr735WAMiTNEZ4WX B5qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version:user-agent :message-id:in-reply-to:date:references:cc:to:from; bh=sD9TXmC51jLQejgkasMBAy2Qvy8a2gOjEt01WyorIQg=; b=z0NQ7Prrg61q8qRcHnlB9YEj60iC5W5HKRQmC2rll/dtbVaV59A9zJsEQqTpFmDnqg cVWV4nWenbmbGe/kBOMwK//43aprfeKqRcEGLlIxKradjqb5wGWDEyKXk8Wqe4/VGrGV MMUNvtMNi6OEp0q7Q/IWI+20oeczdqbjo5QIJC0ZQRyH4A+Jtth8VoU00Z66/v+JKTPr QHsXbfKqxgWnjrK+BfCzuT0V+mVke6nyOMxTtMeTg4Oyug/60LNAvpaRy4zOff3cxMZa +qKlLT3kZ0O7pTEbal/o3nmu2kdpkzpiCGznHOnPmfsVuqbVJphn+pJnUQhcLqeZ0sX6 0c1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t10si6536843edw.408.2020.05.13.07.50.19; Wed, 13 May 2020 07:50:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389042AbgEMOsc (ORCPT + 99 others); Wed, 13 May 2020 10:48:32 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:43190 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732972AbgEMOsa (ORCPT ); Wed, 13 May 2020 10:48:30 -0400 Received: from in02.mta.xmission.com ([166.70.13.52]) by out02.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYsgK-0000yu-51; Wed, 13 May 2020 08:48:24 -0600 Received: from ip68-227-160-95.om.om.cox.net ([68.227.160.95] helo=x220.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.87) (envelope-from ) id 1jYsg9-0006lM-P3; Wed, 13 May 2020 08:48:23 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Luis Chamberlain Cc: Al Viro , Kees Cook , Xiaoming Ni , Stephen Rothwell , Helge Deller , Parisc List , yzaikin@google.com, linux-fsdevel@vger.kernel.org, Linux Next Mailing List , Linux Kernel Mailing List , Christoph Hellwig References: <20200511111123.68ccbaa3@canb.auug.org.au> <99095805-8cbe-d140-e2f1-0c5a3e84d7e7@huawei.com> <20200512003305.GX11244@42.do-not-panic.com> <87y2pxs73w.fsf@x220.int.ebiederm.org> <20200512172413.GC11244@42.do-not-panic.com> <87k11hrqzc.fsf@x220.int.ebiederm.org> <20200512220341.GE11244@42.do-not-panic.com> <87d078oss9.fsf@x220.int.ebiederm.org> <20200513141421.GP11244@42.do-not-panic.com> Date: Wed, 13 May 2020 09:44:40 -0500 In-Reply-To: <20200513141421.GP11244@42.do-not-panic.com> (Luis Chamberlain's message of "Wed, 13 May 2020 14:14:22 +0000") Message-ID: <87tv0jopwn.fsf@x220.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1jYsg9-0006lM-P3;;;mid=<87tv0jopwn.fsf@x220.int.ebiederm.org>;;;hst=in02.mta.xmission.com;;;ip=68.227.160.95;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX19FNoLfkTBHcu+1wfubNVYoTzAxcIgHFsA= X-SA-Exim-Connect-IP: 68.227.160.95 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa01.xmission.com X-Spam-Level: * X-Spam-Status: No, score=1.5 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,T_TM2_M_HEADER_IN_MSG,XMSubLong,XMSubMetaSx_00 autolearn=disabled version=3.4.2 X-Spam-Virus: No X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4992] * 0.7 XMSubLong Long Subject * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa01 0; Body=1 Fuz1=1 Fuz2=1] * 1.0 XMSubMetaSx_00 1+ Sexy Words X-Spam-DCC: ; sa01 0; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: *;Luis Chamberlain X-Spam-Relay-Country: X-Spam-Timing: total 9935 ms - load_scoreonly_sql: 0.03 (0.0%), signal_user_changed: 3.4 (0.0%), b_tie_ro: 2.3 (0.0%), parse: 0.69 (0.0%), extract_message_metadata: 2.6 (0.0%), get_uri_detail_list: 1.14 (0.0%), tests_pri_-1000: 2.3 (0.0%), tests_pri_-950: 1.00 (0.0%), tests_pri_-900: 0.82 (0.0%), tests_pri_-90: 82 (0.8%), check_bayes: 81 (0.8%), b_tokenize: 6 (0.1%), b_tok_get_all: 5 (0.1%), b_comp_prob: 1.56 (0.0%), b_tok_touch_all: 65 (0.7%), b_finish: 0.75 (0.0%), tests_pri_0: 6226 (62.7%), check_dkim_signature: 0.39 (0.0%), check_dkim_adsp: 6008 (60.5%), poll_dns_idle: 9605 (96.7%), tests_pri_10: 1.72 (0.0%), tests_pri_500: 3608 (36.3%), rewrite_mail: 0.00 (0.0%) Subject: Re: linux-next: manual merge of the vfs tree with the parisc-hd tree X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Luis Chamberlain writes: > On Wed, May 13, 2020 at 08:42:30AM -0500, Eric W. Biederman wrote: >> Luis Chamberlain writes: >> >> > On Tue, May 12, 2020 at 12:40:55PM -0500, Eric W. Biederman wrote: >> >> Luis Chamberlain writes: >> >> >> >> > On Tue, May 12, 2020 at 06:52:35AM -0500, Eric W. Biederman wrote: >> >> >> Luis Chamberlain writes: >> >> >> >> >> >> > +static struct ctl_table fs_base_table[] = { >> >> >> > + { >> >> >> > + .procname = "fs", >> >> >> > + .mode = 0555, >> >> >> > + .child = fs_table, >> >> >> > + }, >> >> >> > + { } >> >> >> > +}; >> >> >> ^^^^^^^^^^^^^^^^^^^^^^^^ You don't need this at all. >> >> >> > > +static int __init fs_procsys_init(void) >> >> >> > +{ >> >> >> > + struct ctl_table_header *hdr; >> >> >> > + >> >> >> > + hdr = register_sysctl_table(fs_base_table); >> >> >> ^^^^^^^^^^^^^^^^^^^^^ Please use register_sysctl instead. >> >> >> AKA >> >> >> hdr = register_sysctl("fs", fs_table); >> >> > >> >> > Ah, much cleaner thanks! >> >> >> >> It is my hope you we can get rid of register_sysctl_table one of these >> >> days. It was the original interface but today it is just a >> >> compatibility wrapper. >> >> >> >> I unfortunately ran out of steam last time before I finished converting >> >> everything over. >> > >> > Let's give it one more go. I'll start with the fs stuff. >> >> Just to be clear moving the tables out of kernel/sysctl.c is a related >> but slightly different problem. > > Sure, but also before we go on this crusade, how about we add a few > helpers: > > register_sysctl_kernel() > register_sysctl_vm() > register_sysctl_fs() > register_sysctl_debug() > register_sysctl_dev() Hmm. register_sysctl("kernel") > That should make it easier to look for these, and shorter. We *know* > this is a common path, given the size of the existing table. I don't really care but one character shorter doesn't look like it really helps. Not really for grepping and not maintenance as we get a bunch of trivial one line implementations. Eric