rk2928: limit gpu freq [133,400]MHz
[firefly-linux-kernel-4.4.55.git] / mm / swapfile.c
index ff8dc1a18cb4fb6e15dac52b3dff0c491337f9af..c8f4338848df2fc01b5c7062bff7b83249a01cff 100644 (file)
@@ -932,9 +932,7 @@ static inline int unuse_pmd_range(struct vm_area_struct *vma, pud_t *pud,
        pmd = pmd_offset(pud, addr);
        do {
                next = pmd_addr_end(addr, end);
-               if (unlikely(pmd_trans_huge(*pmd)))
-                       continue;
-               if (pmd_none_or_clear_bad(pmd))
+               if (pmd_none_or_trans_huge_or_clear_bad(pmd))
                        continue;
                ret = unuse_pte_range(vma, pmd, addr, next, entry, page);
                if (ret)