]> git.baikalelectronics.ru Git - 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)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 14 Jul 2022 20:13:49 +0000 (13:13 -0700)
commit848531e7d1a6343b149e53e8a5159ace0b412422
treefd509652c4f0bbe63c31c0e5b1054f2afcea305f
parentcf1710d1388cf5bd81996b258399c4907d27006e
mm: sysctl: fix missing numa_stat when !CONFIG_HUGETLB_PAGE

"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: feef4ee0e202 ("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>
kernel/sysctl.c