Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6862
b: refs/heads/master
c: 4d7670e
h: refs/heads/master
v: v3
  • Loading branch information
Nick Piggin authored and Linus Torvalds committed Sep 5, 2005
1 parent 96b6e6e commit dfaffb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: 2822c1aa574d277b9ba0130b1e71c1a5874bc04a
refs/heads/master: 4d7670e0f649f9e6e6ea6c8bb9f52441fa00f92b
6 changes: 1 addition & 5 deletions trunk/mm/rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,16 +445,12 @@ void page_add_anon_rmap(struct page *page,

if (atomic_inc_and_test(&page->_mapcount)) {
struct anon_vma *anon_vma = vma->anon_vma;
pgoff_t index;

BUG_ON(!anon_vma);
anon_vma = (void *) anon_vma + PAGE_MAPPING_ANON;
page->mapping = (struct address_space *) anon_vma;

index = (address - vma->vm_start) >> PAGE_SHIFT;
index += vma->vm_pgoff;
index >>= PAGE_CACHE_SHIFT - PAGE_SHIFT;
page->index = index;
page->index = linear_page_index(vma, address);

inc_page_state(nr_mapped);
}
Expand Down

0 comments on commit dfaffb3

Please sign in to comment.