]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mmap: leverage vma_rb_erase_ignore() to implement vma_rb_erase()
authorWei Yang <richard.weiyang@linux.alibaba.com>
Tue, 13 Oct 2020 23:53:35 +0000 (16:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 14 Oct 2020 01:38:31 +0000 (18:38 -0700)
commit4b57610ad489270e5aac4df90fbb3c1605b5a716
treef07e7b2f8dfa9826dcaebeb58c90597ded6f8813
parent65480c532600f6032b5fe737dec3af77721268dc
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: Wei Yang <richard.weiyang@linux.alibaba.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Link: https://lkml.kernel.org/r/20200809232057.23477-2-richard.weiyang@linux.alibaba.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mmap.c