Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164421
b: refs/heads/master
c: 8314c4f
h: refs/heads/master
i:
  164419: b3db432
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Sep 22, 2009
1 parent c2f52ed commit cafccca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 7701c9c0f54feb682d0cefa2ae1f4a1e00e0ba09
refs/heads/master: 8314c4f24a0a5c9b1f7544e9fa83a1d5367ddaa7
6 changes: 2 additions & 4 deletions trunk/mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,17 +657,15 @@ again: remove_next = 1 + (end > next->vm_end);
validate_mm(mm);
}

/* Flags that can be inherited from an existing mapping when merging */
#define VM_MERGEABLE_FLAGS (VM_CAN_NONLINEAR)

/*
* If the vma has a ->close operation then the driver probably needs to release
* per-vma resources, so we don't attempt to merge those.
*/
static inline int is_mergeable_vma(struct vm_area_struct *vma,
struct file *file, unsigned long vm_flags)
{
if ((vma->vm_flags ^ vm_flags) & ~VM_MERGEABLE_FLAGS)
/* VM_CAN_NONLINEAR may get set later by f_op->mmap() */
if ((vma->vm_flags ^ vm_flags) & ~VM_CAN_NONLINEAR)
return 0;
if (vma->vm_file != file)
return 0;
Expand Down

0 comments on commit cafccca

Please sign in to comment.