]> git.baikalelectronics.ru Git - kernel.git/commit
mm/debug_vm_pgtable: remove redundant pfn_{pmd/pte}() and fix one comment mistake
authorShixin Liu <liushixin2@huawei.com>
Thu, 1 Jul 2021 01:47:40 +0000 (18:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Jul 2021 03:47:26 +0000 (20:47 -0700)
commit08c1cab7e2a595972970b072a20807b5500375ca
tree9b251381beb3cd3470c9ff134a6dcf7f60629625
parentd6a067eefe84bf4a297786c618e9eb1b11141836
mm/debug_vm_pgtable: remove redundant pfn_{pmd/pte}() and fix one comment mistake

Remove redundant pfn_{pmd/pte}() in {pmd/pte}_advanced_tests() and adjust
pfn_pud() in pud_advanced_tests() to make it similar with other two
functions.

In addition, the branch condition should be CONFIG_TRANSPARENT_HUGEPAGE
instead of CONFIG_ARCH_HAS_PTE_DEVMAP.

Link: https://lkml.kernel.org/r/20210419071820.750217-2-liushixin2@huawei.com
Signed-off-by: Shixin Liu <liushixin2@huawei.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/debug_vm_pgtable.c