]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jul 2022 19:20:13 +0000 (21:20 +0200)
commit31e16a5e113fd843785194b28cbb16c1541e65ba
treeaeabce0c7834917df72298c02c5e268e281637e2
parentc713de1d80a5d7035dc7f667b485bded83b4e74a
mm: sysctl: fix missing numa_stat when !CONFIG_HUGETLB_PAGE

[ 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>
kernel/sysctl.c