diff options
author | Baolin Wang <baolin.wang@linux.alibaba.com> | 2022-06-20 10:34:42 +0800 |
---|---|---|
committer | akpm <akpm@linux-foundation.org> | 2022-07-03 15:42:32 -0700 |
commit | ed1523a895ffdabcab6e067af18685ed00f5ce15 (patch) | |
tree | 6146e98e547c0b043fcb6c9917b7e11a194eb16b /lib/test_linear_ranges.c | |
parent | d684e0a52d36f8939eda30a0f31ee235ee4ee741 (diff) |
mm/damon: use set_huge_pte_at() to make huge pte old
The huge_ptep_set_access_flags() can not make the huge pte old according
to the discussion [1], that means we will always mornitor the young state
of the hugetlb though we stopped accessing the hugetlb, as a result DAMON
will get inaccurate accessing statistics.
So changing to use set_huge_pte_at() to make the huge pte old to fix this
issue.
[1] https://lore.kernel.org/all/Yqy97gXI4Nqb7dYo@arm.com/
Link: https://lkml.kernel.org/r/1655692482-28797-1-git-send-email-baolin.wang@linux.alibaba.com
Fixes: 49f4203aae06 ("mm/damon: add access checking for hugetlb pages")
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Acked-by: Mike Kravetz <mike.kravetz@oracle.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/test_linear_ranges.c')
0 files changed, 0 insertions, 0 deletions