mm: make vm_area_alloc() initialize core fields
Like vm_area_dup(), it initializes the anon_vma_chain head, and the
basic mm pointer.
The rest of the fields end up being different for different users,
although the plan is to also initialize the 'vm_ops' field to a dummy
entry.
Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/ia64/kernel/perfmon.c 1 addition, 3 deletionsarch/ia64/kernel/perfmon.c
- arch/ia64/mm/init.c 2 additions, 6 deletionsarch/ia64/mm/init.c
- fs/exec.c 1 addition, 3 deletionsfs/exec.c
- include/linux/mm.h 1 addition, 1 deletioninclude/linux/mm.h
- kernel/fork.c 8 additions, 2 deletionskernel/fork.c
- mm/mmap.c 3 additions, 9 deletionsmm/mmap.c
- mm/nommu.c 1 addition, 2 deletionsmm/nommu.c
Loading
Please register or sign in to comment