summaryrefslogtreecommitdiff
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorYajun Deng <yajun.deng@linux.dev>2024-02-03 04:46:32 +0300
committerAndrew Morton <akpm@linux-foundation.org>2024-02-22 21:24:52 +0300
commit2c8b947416a9120d50fd165738de38400f9a0933 (patch)
tree7859f5a258c281bc52684f38fecbf66fa8a46915 /mm/memcontrol.c
parentd2d20f08e93a417199107abab795c5d40029eaae (diff)
downloadlinux-2c8b947416a9120d50fd165738de38400f9a0933.tar.xz
mm/mmap: pass vma to vma_merge()
These vma_merge() callers will pass mm, anon_vma and file, they all from the same vma. There is no need to pass three parameters at the same time. Pass vma instead of mm, anon_vma and file to vma_merge(), so that it can save two parameters. Link: https://lkml.kernel.org/r/20240203014632.2726545-1-yajun.deng@linux.dev Link: https://lore.kernel.org/lkml/20240125034922.1004671-2-yajun.deng@linux.dev/ Signed-off-by: Yajun Deng <yajun.deng@linux.dev> Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com> Cc: Yajun Deng <yajun.deng@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
0 files changed, 0 insertions, 0 deletions