Skip to content
  • Tejun Heo's avatar
    percpu: implmeent pcpu_nr_empty_pop_pages and chunk->nr_populated · b539b87f
    Tejun Heo authored
    
    
    pcpu_nr_empty_pop_pages counts the number of empty populated pages
    across all chunks and chunk->nr_populated counts the number of
    populated pages in a chunk.  Both will be used to implement pre/async
    population for atomic allocations.
    
    pcpu_chunk_[de]populated() are added to update chunk->populated,
    chunk->nr_populated and pcpu_nr_empty_pop_pages together.  All
    successful chunk [de]populations should be followed by the
    corresponding pcpu_chunk_[de]populated() calls.
    
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    b539b87f