From mboxrd@z Thu Jan 1 00:00:00 1970 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 37B95E7718E for ; Mon, 23 Dec 2024 14:20:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B5CD36B00CF; Mon, 23 Dec 2024 09:20:32 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B0FCB6B00D0; Mon, 23 Dec 2024 09:20:32 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8C2ED6B00D1; Mon, 23 Dec 2024 09:20:32 -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 6F3146B00CF for ; Mon, 23 Dec 2024 09:20:32 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 2102BC1808 for ; Mon, 23 Dec 2024 14:20:32 +0000 (UTC) X-FDA: 82926433212.12.CB8800C Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) by imf02.hostedemail.com (Postfix) with ESMTP id B7C218000F for ; Mon, 23 Dec 2024 14:19:16 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=none; spf=pass (imf02.hostedemail.com: domain of yukaixiong@huawei.com designates 45.249.212.32 as permitted sender) smtp.mailfrom=yukaixiong@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1734963604; h=from:from:sender: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; bh=fiqsB5nixt812CAPcWL3XjmJcJF3lTPeGxuf7kE1+RM=; b=qhxbv4hiLL/c1OIuvPdPlf8gc11Cbo34uRYN4k4j1DFtwz/y7wdqT0pXI5aohmPmMNlOpM Pa2PigGE1qN5igrasSftNRJS9uIvbn376gCPpQeumO6v8q6M4PEuoGA583sSD6tdHcYu/p aGLFQOZcnZQ7q69AS6LA+c6bUB62/fA= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=none; spf=pass (imf02.hostedemail.com: domain of yukaixiong@huawei.com designates 45.249.212.32 as permitted sender) smtp.mailfrom=yukaixiong@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1734963604; a=rsa-sha256; cv=none; b=XZBr1ezbg+K6j7e1BY60g7h5PJwwrBxVxslv/Kv8jNOviUlerJGnruqH13Rztyqxr+2vSR BFQ2l/yrnwjzQiKK4rBRLILLw0wbQ4XxLCMdfcihYbju/ydcwxL3GvgpXIwz6RVzpW7Z9f 0PjTM8gcQBmzH7uy1Ag7vvliDzRHIdQ= Received: from mail.maildlp.com (unknown [172.19.88.163]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4YH0YT4HKfz20mck; Mon, 23 Dec 2024 22:20:45 +0800 (CST) Received: from kwepemh100016.china.huawei.com (unknown [7.202.181.102]) by mail.maildlp.com (Postfix) with ESMTPS id 1AD13180043; Mon, 23 Dec 2024 22:20:26 +0800 (CST) Received: from huawei.com (10.175.113.32) by kwepemh100016.china.huawei.com (7.202.181.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 23 Dec 2024 22:20:22 +0800 From: Kaixiong Yu To: , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v4 -next 00/15] sysctl: move sysctls from vm_table into its own files Date: Mon, 23 Dec 2024 22:15:35 +0800 Message-ID: <20241223141550.638616-17-yukaixiong@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241223141550.638616-1-yukaixiong@huawei.com> References: <20241223141550.638616-1-yukaixiong@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.113.32] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemh100016.china.huawei.com (7.202.181.102) X-Rspamd-Server: rspam05 X-Stat-Signature: to9b49eg4cauf3wk41qdibx14r1eataa X-Rspamd-Queue-Id: B7C218000F X-Rspam-User: X-HE-Tag: 1734963556-884429 X-HE-Meta: U2FsdGVkX1/Pu5QrxI/4J2BsPWthehoqFLxd9h8dHir4CRUPlJEUPcfTitH+HtftG+UX62PFulCJf91qIgWu+Ed4+Yk4U3EM8JyLoGy94MVTJrGQIajGVm9dYSfH6u8Cz3Mk23TlwUaeKEge69jXDpZxRAkXXEO3fWZccMBezCcD26fNcwgbwV8UszWBpF/04PldzgUKjK17HzNlCZrdApKLPWzIrXYsufeChQ/OHybRnVVz6hMnBd6ONA6fOL1R2ItYVJQBtMFqH+zQL/eGsxLia7/qxvjyp37VDtuaPSGi+oyANAO8ocM/NbmhRj5Ttwlga1goGNReFOb5dbfqNJj+y8zZscebkfgnlx7iOD1inxVaBmG/OTdOzF/i6q9/ITJteTckcDA631jMS3uX2Nf2xMiqGruoNB2nLOLm7QkUnJkcxIcg5HuhYR5LeS6nLx56afol6kqvkDM8zsi1p9H28+k2f7c8PTekrOBZdrPswG/q66pudsguaShZaLtaTRWh8RURTEhZNEqxhc/eg1Kc2frxcFS9Od7zgAvzQxGfC5pVktNzNxsrnGAqBpFXf2r7KcI4XX38MiZHGi8k0q/HjlmiDrIBO3ff0jsM1Q2byjnYVejVU/3SHEDIXSYKZdlZxbQhiGwwjGKvPCYNZcBtWX8Kz3m3jGxPDW80E153DP7b3iA4VIbaBh2fwqysx674Lyrg1Ki1NY+qIbxupYQt6cWaAJexT/fzkCcQE1myBwCazSjEcjMGqUPbMuDosTQFw76XuJlL9OYFlY0GWjIZvkpj/rGKAEfVLzjlPahUV8s08Rdr92lVSqgXNc9oRXpnnzR0hqg8lBsUUnDK5F+kIcslEQf945WwiP6/cg8n+Z4TJQddzj0qqxqCYOSMz7XyF7VfQfgBU5UXNh708Jq9MTDcBh4kuo2C2k+NsCN5Bu2tTGAlv244c2mf9bshe+c7BeEduCt1ZUrFr0u 2gSYnUtZ BwJVqOhkH9M1gkIdTf0PacnB1S7/wbsQEY9wmKdd7CC6BGPJ02WT7hFr6Q89GK5jQYmxlQMnWJgxcqFJD2w+TgbAkqWL8Fx0jf9cg6OGTFBrsa4OjADyekwI/UUTLcuYwTcc2Q+Yv9tjyoDOFeeNkWWMbVsnJ/xG0/zlM 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: This patch series moves sysctls of vm_table in kernel/sysctl.c to places where they actually belong, and do some related code clean-ups. After this patch series, all sysctls in vm_table have been moved into its own files, meanwhile, delete vm_table. All the modifications of this patch series base on linux-next(tags/next-20241219). To test this patch series, the code was compiled with both the CONFIG_SYSCTL enabled and disabled on arm64 and x86_64 architectures. After this patch series is applied, all files under /proc/sys/vm can be read or written normally. Changes in v4: - change all "static struct ctl_table" type into "static const struct ctl_table" type in patch1~10,12,13,14 - simplify result of rpcauth_cache_shrink_count() in patch11 Changes in v3: - change patch1~10, patch14 title suggested by Joel Granados - change sysctl_stat_interval to static type in patch1 - add acked-by from Paul Moore in patch7 - change dirtytime_expire_interval to static type in patch9 - add acked-by from Anna Schumaker in patch11 Changes in v2: - fix sysctl_max_map_count undeclared issue in mm/nommu.c for patch6 - update changelog for patch7/12, suggested by Kees/Paul - fix patch8, sorry for wrong changes and forget to built with NOMMU - add reviewed-by from Kees except patch8 since patch8 is wrong in v1 - add reviewed-by from Jan Kara, Christian Brauner in patch12 Kaixiong Yu (15): mm: vmstat: move sysctls to mm/vmstat.c mm: filemap: move sysctl to mm/filemap.c mm: swap: move sysctl to mm/swap.c mm: vmscan: move vmscan sysctls to mm/vmscan.c mm: util: move sysctls to mm/util.c mm: mmap: move sysctl to mm/mmap.c security: min_addr: move sysctl to security/min_addr.c mm: nommu: move sysctl to mm/nommu.c fs: fs-writeback: move sysctl to fs/fs-writeback.c fs: drop_caches: move sysctl to fs/drop_caches.c sunrpc: simplify rpcauth_cache_shrink_count() fs: dcache: move the sysctl to fs/dcache.c x86: vdso: move the sysctl to arch/x86/entry/vdso/vdso32-setup.c sh: vdso: move the sysctl to arch/sh/kernel/vsyscall/vsyscall.c sysctl: remove unneeded include arch/sh/kernel/vsyscall/vsyscall.c | 14 ++ arch/x86/entry/vdso/vdso32-setup.c | 16 ++- fs/dcache.c | 21 ++- fs/drop_caches.c | 23 ++- fs/fs-writeback.c | 30 ++-- include/linux/dcache.h | 7 +- include/linux/mm.h | 23 --- include/linux/mman.h | 2 - include/linux/swap.h | 9 -- include/linux/vmstat.h | 11 -- include/linux/writeback.h | 4 - kernel/sysctl.c | 221 ----------------------------- mm/filemap.c | 18 ++- mm/internal.h | 10 ++ mm/mmap.c | 54 +++++++ mm/nommu.c | 15 +- mm/swap.c | 16 ++- mm/swap.h | 1 + mm/util.c | 67 +++++++-- mm/vmscan.c | 23 +++ mm/vmstat.c | 44 +++++- net/sunrpc/auth.c | 2 +- security/min_addr.c | 11 ++ 23 files changed, 330 insertions(+), 312 deletions(-) -- 2.34.1