]> 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)
commit38f0551467a66f14b81ccd7c7f4f265aa46ca1bc
treef07e7b2f8dfa9826dcaebeb58c90597ded6f8813
parentb12640131d656d121588e936a84d79ca6686e71e
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