rmap 35 mmap.c cleanups
Subsystems (3)
PATCH 51/57 rmap 35 mmap.c cleanups
From: Hugh Dickins <[email protected]>
Before some real vma_merge work in mmap.c in the next patch, a patch of miscellaneous cleanups to cut down the noise:
- remove rb_parent arg from vma_merge: mm->mmap can do that case
- scatter pgoff_t around to ingratiate myself with the boss
- reorder is_mergeable_vma tests, vm_ops->close is least likely
- can_vma_merge_before take combined pgoff+pglen arg (from Andrea)
- rearrange do_mmap_pgoff's ever-confusing anonymous flags switch
- comment do_mmap_pgoff's mysterious (vm_flags & VM_SHARED) test
- fix ISO C90 warning on browse_rb if building with DEBUG_MM_RB
- stop that long MNT_NOEXEC line wrapping
Yes, buried in amidst these is indeed one pgoff replaced by "next->vm_pgoff - pglen" (reverting a mod of mine which took pgoff supplied by user too seriously in the anon case), and another pgoff replaced by 0 (reverting anon_vma mod which crept in with NUMA API): neither of them really matters, except perhaps in /proc/pid/maps.
---
25-akpm/include/linux/mm.h | 2 - 25-akpm/mm/mmap.c | 90 +++++++++++++++++++++++---------------------- 2 files changed, 47 insertions(+), 45 deletions(-)
include/linux/mm.h renamed from include/linux/mm.h~rmap-35-mmapc-cleanups +1 -1
@@ -612,7 +612,7 @@ extern void insert_vm_struct(struct mm_sextern void __vma_link_rb (struct mm_struct *,struct vm_area_struct *,struct rb_node **,struct rb_node *);extern struct vm_area_struct *copy_vma (struct vm_area_struct **, -unsigned long addr,unsigned long len,unsigned long pgoff); +unsigned long addr,unsigned long len,pgoff_t pgoff);extern void exit_mmap (struct mm_struct *);extern unsigned long get_unmapped_area (struct file *,unsigned long ,unsigned long ,unsigned long ,unsigned long );
mm/mmap.c renamed from mm/mmap.c~rmap-35-mmapc-cleanups +46 -44
220 lines not on this page · raw message
_
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>