Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207236
b: refs/heads/master
c: 21d0d44
h: refs/heads/master
v: v3
  • Loading branch information
Andrea Arcangeli authored and Linus Torvalds committed Aug 10, 2010
1 parent d5e0458 commit 0878d9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 288468c334e98aacbb7e2fb8bde6bc1adcd55e05
refs/heads/master: 21d0d443cdc1658a8c1484fdcece4803f0f96d0e
7 changes: 4 additions & 3 deletions trunk/mm/rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,10 @@ vma_address(struct page *page, struct vm_area_struct *vma)
*/
unsigned long page_address_in_vma(struct page *page, struct vm_area_struct *vma)
{
if (PageAnon(page))
;
else if (page->mapping && !(vma->vm_flags & VM_NONLINEAR)) {
if (PageAnon(page)) {
if (vma->anon_vma->root != page_anon_vma(page)->root)
return -EFAULT;
} 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 0878d9a

Please sign in to comment.