From: Yajun Deng <yajun.deng@linux.dev>
To: akpm@linux-foundation.org
Cc: Liam.Howlett@Oracle.com, lstoakes@gmail.com,
viro@zeniv.linux.org.uk, brauner@kernel.org, vbabka@suse.cz,
willy@infradead.org, surenb@google.com, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, Yajun Deng <yajun.deng@linux.dev>
Subject: [PATCH v2 0/2] mm/mmap: simplify vma_merge()
Date: Thu, 25 Jan 2024 11:49:20 +0800 [thread overview]
Message-ID: <20240125034922.1004671-1-yajun.deng@linux.dev> (raw)
The vma_merge() has too many parameters, we can pass vma to vma_merge(),
so that it can save two parameters.
Since the src vma was passed, find_vma_intersection() can be removed.
v2: split it into two patches.
v1: https://lore.kernel.org/all/20240118082312.2801992-1-yajun.deng@linux.dev/
Yajun Deng (2):
mm/mmap: pass vma to vma_merge()
mm/mmap: remove find_vma_intersection() in vma_merge()
mm/mmap.c | 42 ++++++++++++++++++++++--------------------
1 file changed, 22 insertions(+), 20 deletions(-)
--
2.25.1
next reply other threads:[~2024-01-25 3:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-25 3:49 Yajun Deng [this message]
2024-01-25 3:49 ` [PATCH v2 1/2] mm/mmap: pass vma to vma_merge() Yajun Deng
2024-01-26 2:25 ` Liam R. Howlett
2024-01-25 3:49 ` [PATCH v2 2/2] mm/mmap: remove find_vma_intersection() in vma_merge() Yajun Deng
2024-01-26 2:28 ` Liam R. Howlett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240125034922.1004671-1-yajun.deng@linux.dev \
--to=yajun.deng@linux.dev \
--cc=Liam.Howlett@Oracle.com \
--cc=akpm@linux-foundation.org \
--cc=brauner@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lstoakes@gmail.com \
--cc=surenb@google.com \
--cc=vbabka@suse.cz \
--cc=viro@zeniv.linux.org.uk \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox