mm/thp/autonuma: use TNF flag instead of vm fault
Subsystems (2)
[email protected]
maintainerPATCH 88/124 mm/thp/autonuma: use TNF flag instead of vm fault
From: "Aneesh Kumar K.V" <[email protected]>
Subject: mm/thp/autonuma: use TNF flag instead of vm fault
We are using the wrong flag value in task_numa_falt function. This can result in us doing wrong numa fault statistics update, because we update num_pages_migrate and numa_fault_locality etc based on the flag argument passed.
Fixes bae473a423 ("mm: introduce fault_env")
Signed-off-by Aneesh Kumar K.V <[email protected]>
Acked-by Hillf Danton <[email protected]>
Cc Rik van Riel <[email protected]>
Cc Mel Gorman <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/huge_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/huge_memory.c renamed from mm/huge_memory.c~mm-thp-autonuma-use-tnf-flag-instead-of-vm-fault +1 -1
@@ -1506,7 +1506,7 @@ out:if (page_nid !=-1 )task_numa_fault (last_cpupid, page_nid,HPAGE_PMD_NR , - vmf->flags); + flags);return 0 ; }
_