]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ace999b9e7090b7a17a59a79e76aa96b9942b73
tree19d4f7f06cf1589abc6a559a4b3b59d7adb9bfb6
parent89403a1310a83def6d9614c6aa1d0c74984a25f7
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