Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252736
b: refs/heads/master
c: 5dbe0af
h: refs/heads/master
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed May 28, 2011
1 parent c729702 commit 0da0528
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 826267cf1e6c6899eda1325a19f1b1d15c558b20
refs/heads/master: 5dbe0af47f8a8f968bac2991c3ec974c6e3eaabc
4 changes: 2 additions & 2 deletions trunk/mm/rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ void do_page_add_anon_rmap(struct page *page,
return;

VM_BUG_ON(!PageLocked(page));
VM_BUG_ON(address < vma->vm_start || address >= vma->vm_end);
/* address might be in next vma when migration races vma_adjust */
if (first)
__page_set_anon_rmap(page, vma, address, exclusive);
else
Expand Down Expand Up @@ -1709,7 +1709,7 @@ void hugepage_add_anon_rmap(struct page *page,

BUG_ON(!PageLocked(page));
BUG_ON(!anon_vma);
BUG_ON(address < vma->vm_start || address >= vma->vm_end);
/* address might be in next vma when migration races vma_adjust */
first = atomic_inc_and_test(&page->_mapcount);
if (first)
__hugepage_set_anon_rmap(page, vma, address, 0);
Expand Down

0 comments on commit 0da0528

Please sign in to comment.