[PATCHv2 1/2] mm: rearrange madvise code to allow for reuse

2013-10-01 Thread Colin Cross
This patch refactors the madvise syscall to allow for parts of it to be reused by a prctl syscall that affects vmas. Move the code that walks vmas in a virtual address range into a function that takes a function pointer as a parameter. The only caller for now is sys_madvise, which uses it to

[PATCHv2 1/2] mm: rearrange madvise code to allow for reuse

2013-10-01 Thread Colin Cross
This patch refactors the madvise syscall to allow for parts of it to be reused by a prctl syscall that affects vmas. Move the code that walks vmas in a virtual address range into a function that takes a function pointer as a parameter. The only caller for now is sys_madvise, which uses it to