Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-iv
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-iv
  • Repository
Switch branch/tag
  • linux-iv
  • mm
  • slab.c
Find file BlameHistoryPermalink
  • Oscar Salvador's avatar
    mm/slab.c: remove redundant assignments for slab_state · 84ebb582
    Oscar Salvador authored Jan 31, 2018
    slab_state is being set to "UP" in create_kmalloc_caches(), and later on
    we set it again in kmem_cache_init_late(), but slab_state does not
    change in the meantime.
    
    Remove the redundant assignment from kmem_cache_init_late().
    
    And unless I overlooked anything, the same goes for "slab_state = FULL".
    slab_state is set to "FULL" in kmem_cache_init_late(), but it is later
    being set again in cpucache_init(), which gets called from
    do_initcall_level().  So remove the assignment from cpucache_init() as
    well.
    
    Link: http://lkml.kernel.org/r/20171215134452.GA1920@techadventures.net
    
    Signed-off-by: default avatarOscar Salvador <osalvador@techadventures.net>
    Acked-by: default avatarChristoph Lameter <cl@linux.com>
    Cc: Pekka Enberg <penberg@kernel.org>
    Cc: David Rientjes <rientjes@google.com>
    Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    84ebb582