Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190785
b: refs/heads/master
c: ab941e0
h: refs/heads/master
i:
  190783: 6abd9c2
v: v3
  • Loading branch information
Naoya Horiguchi authored and Linus Torvalds committed May 12, 2010
1 parent 151b8ac commit 21a6afe
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 4a6018f7f4f1075c1a5403b5ec0ee7262187b86c
refs/heads/master: ab941e0fff3947b6dcc9c578d918d1bba54a6874
9 changes: 4 additions & 5 deletions trunk/mm/rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,13 @@ vma_address(struct page *page, struct vm_area_struct *vma)

/*
* At what user virtual address is page expected in vma?
* checking that the page matches the vma.
* Caller should check the page is actually part of the vma.
*/
unsigned long page_address_in_vma(struct page *page, struct vm_area_struct *vma)
{
if (PageAnon(page)) {
if (vma->anon_vma != page_anon_vma(page))
return -EFAULT;
} else if (page->mapping && !(vma->vm_flags & VM_NONLINEAR)) {
if (PageAnon(page))
;
else if (page->mapping && !(vma->vm_flags & VM_NONLINEAR)) {
if (!vma->vm_file ||
vma->vm_file->f_mapping != page->mapping)
return -EFAULT;
Expand Down

0 comments on commit 21a6afe

Please sign in to comment.