[Kernel] [PATCH OpenHarmony-5.10 1/3] mm: rearrange madvise code to allow for reuse