mm: sysctl: fix missing numa_stat when !CONFIG_HUGETLB_PAGE
stable inclusion from stable-v5.10.132 commit 31e16a5e113fd843785194b28cbb16c1541e65ba category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5YS3T Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=31e16a5e113fd843785194b28cbb16c1541e65ba -------------------------------- [ Upstream commit 43b5240c ] "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: 4518085e ("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:
Zheng Zengkai <zhengzengkai@huawei.com> Acked-by:
Xie XiuQi <xiexiuqi@huawei.com>
Loading
Please sign in to comment