aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/mlock.c
diff options
context:
space:
mode:
authorZhangPeng <zhangpeng362@huawei.com>2023-04-04 17:45:15 +0800
committerAndrew Morton <akpm@linux-foundation.org>2023-04-18 16:29:52 -0700
commit92d5df38ca91f138d4964d71a6835add95f99e59 (patch)
tree5403576ffdab2b81fb5cffa026969abac8ac6b99 /mm/mlock.c
parentmemcg v1: provide read access to memory.pressure_level (diff)
downloadwireguard-linux-92d5df38ca91f138d4964d71a6835add95f99e59.tar.xz
wireguard-linux-92d5df38ca91f138d4964d71a6835add95f99e59.zip
mm/madvise: use vma_lookup() instead of find_vma()
Using vma_lookup() verifies the address is contained in the found vma. This results in easier to read the code. Link: https://lkml.kernel.org/r/20230404094515.1883552-1-zhangpeng362@huawei.com Signed-off-by: ZhangPeng <zhangpeng362@huawei.com> Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/mlock.c')
0 files changed, 0 insertions, 0 deletions