Skip to content
Commit 4d1e7243 authored by Wei Yang's avatar Wei Yang Committed by Linus Torvalds
Browse files

mm/mmap: leverage vma_rb_erase_ignore() to implement vma_rb_erase()



These two functions share the same logic except ignore a different vma.

Let's reuse the code.

Signed-off-by: default avatarWei Yang <richard.weiyang@linux.alibaba.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Link: https://lkml.kernel.org/r/20200809232057.23477-2-richard.weiyang@linux.alibaba.com


Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7c61f917
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment