]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mm: sysctl: fix missing numa_stat when !CONFIG_HUGETLB_PAGE
authorMuchun Song <songmuchun@bytedance.com>
Thu, 9 Jun 2022 10:40:32 +0000 (18:40 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 16 Sep 2022 08:52:54 +0000 (10:52 +0200)
commitbfdc9430a68dac9974eb2a6f9f124799bd3f348c
tree07e74a96f23397ad6ab2ce89c9998e166ca39aa1
parent0e68a4c0cac87c2ae166eb63f3414af04d252406
mm: sysctl: fix missing numa_stat when !CONFIG_HUGETLB_PAGE

BugLink: https://bugs.launchpad.net/bugs/1988351
[ Upstream commit 43b5240ca6b33108998810593248186b1e3ae34a ]

"numa_stat" should not be included in the scope of CONFIG_HUGETLB_PAGE, if
CONFIG_HUGETLB_PAGE is not configured even if CONFIG_NUMA is configured,
"numa_stat" is missed form /proc. Move it out of CONFIG_HUGETLB_PAGE to
fix it.

Fixes: 4518085e127d ("mm, sysctl: make NUMA stats configurable")
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Cc: <stable@vger.kernel.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
kernel/sysctl.c