+3
−1
Loading
mainline inclusion from mainline-v6.12-rc1 commit ac59a1f0146f46bad7d5f8d1b20756ece43122ec category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IB8EOE Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ac59a1f0146f46bad7d5f8d1b20756ece43122ec -------------------------------- memory tiering can be enabled/disabled at runtime and sysctl_numa_balancing_mode & NUMA_BALANCING_MEMORY_TIERING is used to check it. In migrate_misplaced_folio(), the check is missing when PGPROMOTE_SUCCESS is incremented. Add the missing check. Link: https://lkml.kernel.org/r/20240724130115.793641-4-ziy@nvidia.com Fixes: 33024536 ("memory tiering: hot page selection with hint page fault latency") Reported-by:Kefeng Wang <wangkefeng.wang@huawei.com> Closes: https://lore.kernel.org/linux-mm/f4ae2c9c-fe40-4807-bdb2-64cf2d716c1a@huawei.com/ Signed-off-by:
Zi Yan <ziy@nvidia.com> Acked-by:
David Hildenbrand <david@redhat.com> Reviewed-by:
Kefeng Wang <wangkefeng.wang@huawei.com> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: "Huang, Ying" <ying.huang@intel.com> Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Conflicts: mm/migrate.c [context conflicts, not affect.] Signed-off-by:
Tong Tiangen <tongtiangen@huawei.com>