[PATCH v2 1/2] mm: avoid spurious 'bad pmd' warning messages

2017-05-22 Thread Ross Zwisler
When the pmd_devmap() checks were added by: commit 5c7fb56e5e3f ("mm, dax: dax-pmd vs thp-pmd vs hugetlbfs-pmd") to add better support for DAX huge pages, they were all added to the end of if() statements after existing pmd_trans_huge() checks. So, things like: - if

[PATCH v2 1/2] mm: avoid spurious 'bad pmd' warning messages

2017-05-22 Thread Ross Zwisler
When the pmd_devmap() checks were added by: commit 5c7fb56e5e3f ("mm, dax: dax-pmd vs thp-pmd vs hugetlbfs-pmd") to add better support for DAX huge pages, they were all added to the end of if() statements after existing pmd_trans_huge() checks. So, things like: - if