Files
linux/mm
Baolin Wang e02ea83370 UPSTREAM: 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/

Bug: 254441685
Link: https://lkml.kernel.org/r/1655692482-28797-1-git-send-email-baolin.wang@linux.alibaba.com
Fixes: 49f4203aae ("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>
(cherry picked from commit ed1523a895)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I6df9143c124fedb9d6bb8f76487e91ee05b56df1
2022-12-19 16:30:28 +00:00
..
2022-06-09 10:28:01 +02:00
2021-05-07 00:26:35 -07:00
2021-05-05 11:27:24 -07:00
2022-07-13 11:40:42 +02:00
2021-05-05 11:27:24 -07:00
2022-12-08 16:43:35 +00:00
2022-03-23 11:32:12 -07:00
2021-06-29 10:53:52 -07:00
2022-11-28 16:08:50 +00:00
2022-12-14 11:37:20 +01:00
2022-12-14 13:04:18 +01:00
2022-09-24 14:12:45 +02:00
2021-09-13 10:18:28 -07:00
2022-10-05 11:59:55 +02:00
2022-03-16 12:53:52 +01:00
2022-12-14 13:04:18 +01:00
2022-09-21 17:30:12 +02:00
2022-10-05 11:59:55 +02:00
2022-06-09 15:39:10 +02:00
2022-06-06 11:12:02 +02:00
2021-11-23 11:59:24 +05:30
2021-06-05 20:43:15 +00:00
2022-04-27 16:02:52 +00:00
2021-05-07 00:26:35 -07:00
2022-11-28 16:08:50 +00:00
2022-06-06 11:12:02 +02:00
2022-06-06 11:12:02 +02:00
2022-09-28 13:32:32 +02:00
2021-11-23 11:59:24 +05:30
2022-07-13 19:41:43 +02:00
2022-12-08 16:43:35 +00:00
2021-05-07 00:26:35 -07:00
2022-07-09 11:22:04 +02:00