Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42655
b: refs/heads/master
c: cace673
h: refs/heads/master
i:
  42653: 08ff75a
  42651: 3b7d2e3
  42647: a3cf061
  42639: aa7ba05
  42623: ac99c8d
v: v3
  • Loading branch information
Chen, Kenneth W authored and Linus Torvalds committed Dec 7, 2006
1 parent a92ddf3 commit 515a99d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa
refs/heads/master: cace673d376d97b0c66ffa0a49b8d588a696d5d2
8 changes: 0 additions & 8 deletions trunk/mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ int copy_hugetlb_page_range(struct mm_struct *dst, struct mm_struct *src,
entry = *src_pte;
ptepage = pte_page(entry);
get_page(ptepage);
add_mm_counter(dst, file_rss, HPAGE_SIZE / PAGE_SIZE);
set_huge_pte_at(dst, addr, dst_pte, entry);
}
spin_unlock(&src->page_table_lock);
Expand Down Expand Up @@ -377,10 +376,6 @@ void __unmap_hugepage_range(struct vm_area_struct *vma, unsigned long start,
BUG_ON(end & ~HPAGE_MASK);

spin_lock(&mm->page_table_lock);

/* Update high watermark before we lower rss */
update_hiwater_rss(mm);

for (address = start; address < end; address += HPAGE_SIZE) {
ptep = huge_pte_offset(mm, address);
if (!ptep)
Expand All @@ -395,9 +390,7 @@ void __unmap_hugepage_range(struct vm_area_struct *vma, unsigned long start,

page = pte_page(pte);
list_add(&page->lru, &page_list);
add_mm_counter(mm, file_rss, (int) -(HPAGE_SIZE / PAGE_SIZE));
}

spin_unlock(&mm->page_table_lock);
flush_tlb_range(vma, start, end);
list_for_each_entry_safe(page, tmp, &page_list, lru) {
Expand Down Expand Up @@ -523,7 +516,6 @@ int hugetlb_no_page(struct mm_struct *mm, struct vm_area_struct *vma,
if (!pte_none(*ptep))
goto backout;

add_mm_counter(mm, file_rss, HPAGE_SIZE / PAGE_SIZE);
new_pte = make_huge_pte(vma, page, ((vma->vm_flags & VM_WRITE)
&& (vma->vm_flags & VM_SHARED)));
set_huge_pte_at(mm, address, ptep, new_pte);
Expand Down

0 comments on commit 515a99d

Please sign in to comment.