Re: [PATCH] mm: hugetlb: move hugeltb sysctls to its own file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 2023/3/9 20:20, Kefeng Wang wrote:
This moves all hugetlb sysctls to its own file, also kill an
useless hugetlb_treat_movable_handler() defination.

Signed-off-by: Kefeng Wang <wangkefeng.wang@xxxxxxxxxx>
---
  include/linux/hugetlb.h |  8 -------
  kernel/sysctl.c         | 32 --------------------------
  mm/hugetlb.c            | 51 ++++++++++++++++++++++++++++++++++++++---
  3 files changed, 48 insertions(+), 43 deletions(-)


+#ifdef CONFIG_SYSCTL
+static void hugetlb_sysctl_init(void);

Hi Luis,this should add __init as it is called by hugetlb_init,
could you help to change it, or I could send a new patch.


+#else
+static inline void hugetlb_sysctl_init(void) { }
+#endif
+
  static int __init hugetlb_init(void)
  {
  	int i;
@@ -4257,6 +4263,7 @@ static int __init hugetlb_init(void)
hugetlb_sysfs_init();
  	hugetlb_cgroup_file_init();
+	hugetlb_sysctl_init();
...
+
+static void hugetlb_sysctl_init(void)

ditto, sorry for the mistake.

Thanks.

+{
+	register_sysctl_init("vm", hugetlb_table);
+}
  #endif /* CONFIG_SYSCTL */
void hugetlb_report_meminfo(struct seq_file *m)



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux