{
struct page *page;
pte_t *_pte;
- int referenced = 0, isolated = 1, none = 0;
+ int referenced = 0, none = 0;
for (_pte = pte; _pte < pte+HPAGE_PMD_NR;
_pte++, address += PAGE_SIZE) {
pte_t pteval = *_pte;
mmu_notifier_test_young(vma->vm_mm, address))
referenced = 1;
}
- if (unlikely(!referenced)) {
+ if (likely(referenced))
+ return 1;
out:
- release_pte_pages(pte, _pte);
- isolated = 0;
- }
- return isolated;
+ release_pte_pages(pte, _pte);
+ return 0;
}
static void __collapse_huge_page_copy(pte_t *pte, struct page *page,