Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • mm
  • vmalloc.c
Find file BlameHistoryPermalink
  • Uladzislau Rezki (Sony)'s avatar
    mm/vmalloc: simplify merge_or_add_vmap_area() · 5dd78640
    Uladzislau Rezki (Sony) authored Aug 06, 2020
    
    
    Currently when a VA is deallocated and is about to be placed back to the
    tree, it can be either: merged with next/prev neighbors or inserted if not
    coalesced.
    
    On those steps the tree can be populated several times.  For example when
    both neighbors are merged.  It can be avoided and simplified in fact.
    
    Therefore do it only once when VA points to final merged area, after all
    manipulations: merging/removing/inserting.
    
    Signed-off-by: default avatarUladzislau Rezki (Sony) <urezki@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Link: http://lkml.kernel.org/r/20200527205054.1696-1-urezki@gmail.com
    
    
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    5dd78640
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7