Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164481
b: refs/heads/master
c: f8dbf0a
h: refs/heads/master
i:
  164479: 59b3f16
v: v3
  • Loading branch information
Huang Shijie authored and Linus Torvalds committed Sep 22, 2009
1 parent 62e2779 commit 0d515b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 252c5f94d944487e9f50ece7942b0fbf659c5c31
refs/heads/master: f8dbf0a7a4c5d98e8b70da9f7f4f6a89f3b7a7bb
18 changes: 9 additions & 9 deletions trunk/mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1191,21 +1191,21 @@ unsigned long mmap_region(struct file *file, unsigned long addr,
goto unmap_and_free_vma;
if (vm_flags & VM_EXECUTABLE)
added_exe_file_vma(mm);

/* Can addr have changed??
*
* Answer: Yes, several device drivers can do it in their
* f_op->mmap method. -DaveM
*/
addr = vma->vm_start;
pgoff = vma->vm_pgoff;
vm_flags = vma->vm_flags;
} else if (vm_flags & VM_SHARED) {
error = shmem_zero_setup(vma);
if (error)
goto free_vma;
}

/* Can addr have changed??
*
* Answer: Yes, several device drivers can do it in their
* f_op->mmap method. -DaveM
*/
addr = vma->vm_start;
pgoff = vma->vm_pgoff;
vm_flags = vma->vm_flags;

if (vma_wants_writenotify(vma))
vma->vm_page_prot = vm_get_page_prot(vm_flags & ~VM_SHARED);

Expand Down

0 comments on commit 0d515b0

Please sign in to comment.