[0/2] mm/mmap.c: reduce subtree gap propagation a little
mbox series

Message ID 20190826073106.29971-1-richardw.yang@linux.intel.com
Headers show
Series
  • mm/mmap.c: reduce subtree gap propagation a little
Related show

Message

Wei Yang Aug. 26, 2019, 7:31 a.m. UTC
When insert and delete a vma, it will compute and propagate related subtree
gap. After some investigation, we can reduce subtree gap propagation a little.

[1]: This one reduce the propagation by update *next* gap after itself, since
     *next* must be a parent in this case.
[2]: This one achieve this by unlinking vma from list.

After applying these two patches, test shows it reduce 0.4% function all for
vma_compute_subtree_gap.

Wei Yang (2):
  mm/mmap.c: update *next* gap after itself
  mm/mmap.c: unlink vma before rb_erase

 mm/mmap.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)