]> Pileus Git - ~andy/linux/blobdiff - mm/hugetlb.c
Use the APIC to determine the hardware processor id - x86_64
[~andy/linux] / mm / hugetlb.c
index cb362f761f174b926c1c41b72ec2940c5d45763d..88e708be1f64e66bbde10b28246f52f3c59de776 100644 (file)
@@ -140,6 +140,8 @@ static struct page *alloc_huge_page(struct vm_area_struct *vma,
        return page;
 
 fail:
+       if (vma->vm_flags & VM_MAYSHARE)
+               resv_huge_pages++;
        spin_unlock(&hugetlb_lock);
        return NULL;
 }
@@ -389,6 +391,8 @@ void __unmap_hugepage_range(struct vm_area_struct *vma, unsigned long start,
                        continue;
 
                page = pte_page(pte);
+               if (pte_dirty(pte))
+                       set_page_dirty(page);
                list_add(&page->lru, &page_list);
        }
        spin_unlock(&mm->page_table_lock);