diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-03-23 23:44:19 -0500 |
| commit | 1ebbe2b20091d306453a5cf480a87e6cd28ae76f (patch) | |
| tree | f5cd7a0fa69b8b1938cb5a0faed2e7b0628072a5 /mm/mmap.c | |
| parent | ac58c9059da8886b5e8cde012a80266b18ca146e (diff) | |
| parent | 674a396c6d2ba0341ebdd7c1c9950f32f018e2dd (diff) | |
Merge branch 'linus'
Diffstat (limited to 'mm/mmap.c')
| -rw-r--r-- | mm/mmap.c | 10 |
1 files changed, 1 insertions, 9 deletions
| @@ -612,7 +612,7 @@ again: remove_next = 1 + (end > next->vm_end); | |||
| 612 | * If the vma has a ->close operation then the driver probably needs to release | 612 | * If the vma has a ->close operation then the driver probably needs to release |
| 613 | * per-vma resources, so we don't attempt to merge those. | 613 | * per-vma resources, so we don't attempt to merge those. |
| 614 | */ | 614 | */ |
| 615 | #define VM_SPECIAL (VM_IO | VM_DONTCOPY | VM_DONTEXPAND | VM_RESERVED | VM_PFNMAP) | 615 | #define VM_SPECIAL (VM_IO | VM_DONTEXPAND | VM_RESERVED | VM_PFNMAP) |
| 616 | 616 | ||
| 617 | static inline int is_mergeable_vma(struct vm_area_struct *vma, | 617 | static inline int is_mergeable_vma(struct vm_area_struct *vma, |
| 618 | struct file *file, unsigned long vm_flags) | 618 | struct file *file, unsigned long vm_flags) |
| @@ -845,14 +845,6 @@ void vm_stat_account(struct mm_struct *mm, unsigned long flags, | |||
| 845 | const unsigned long stack_flags | 845 | const unsigned long stack_flags |
| 846 | = VM_STACK_FLAGS & (VM_GROWSUP|VM_GROWSDOWN); | 846 | = VM_STACK_FLAGS & (VM_GROWSUP|VM_GROWSDOWN); |
| 847 | 847 | ||
| 848 | #ifdef CONFIG_HUGETLB | ||
| 849 | if (flags & VM_HUGETLB) { | ||
| 850 | if (!(flags & VM_DONTCOPY)) | ||
| 851 | mm->shared_vm += pages; | ||
| 852 | return; | ||
| 853 | } | ||
| 854 | #endif /* CONFIG_HUGETLB */ | ||
| 855 | |||
| 856 | if (file) { | 848 | if (file) { |
| 857 | mm->shared_vm += pages; | 849 | mm->shared_vm += pages; |
| 858 | if ((flags & (VM_EXEC|VM_WRITE)) == VM_EXEC) | 850 | if ((flags & (VM_EXEC|VM_WRITE)) == VM_EXEC) |
