mm/huge_memory: use helper touch_pud in huge_pud_set_accessed
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 4 Jul 2022 13:21:49 +0000 (21:21 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:14:44 +0000 (17:14 -0700)
commit5fe653e9000da9ce06e3696508c44b45315b9887
treebff379a00b9d5d93e10330aa7d9aa965922e01af
parentd965e3907540e829df27a22738536d3b9d989820
mm/huge_memory: use helper touch_pud in huge_pud_set_accessed

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

Link: https://lkml.kernel.org/r/20220704132201.14611-5-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