mm/huge_memory: use helper touch_pmd in huge_pmd_set_accessed
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 4 Jul 2022 13:21:50 +0000 (21:21 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:14:45 +0000 (17:14 -0700)
commita69e4717c62508ad5335e9bd56b1b6984a6b2b98
tree19d4f7f06cf1589abc6a559a4b3b59d7adb9bfb6
parent5fe653e9000da9ce06e3696508c44b45315b9887
mm/huge_memory: use helper touch_pmd in huge_pmd_set_accessed

Use helper touch_pmd to set pmd accessed to simplify the code and improve
the readability. No functional change intended.

Link: https://lkml.kernel.org/r/20220704132201.14611-6-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Yang Shi <shy828301@gmail.com>
Cc: Zach O'Keefe <zokeefe@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c