• J
    bootmem: factor out the marking of a PFN range · e2bf3cae
    Johannes Weiner 提交于
    Introduce new helpers that mark a range that resides completely on a node
    or node-agnostic ranges that might also span node boundaries.
    
    The free/reserve API functions will then directly use these helpers.
    
    Note that the free/reserve semantics become more strict: while the prior
    code took basically arbitrary range arguments and marked the PFNs that
    happen to fall into that range, the new code requires node-specific ranges
    to be completely on the node.  The node-agnostic requests might span node
    boundaries as long as the nodes are contiguous.
    
    Passing ranges that do not satisfy these criteria is a bug.
    
    [akpm@linux-foundation.org: fix printk warnings]
    Signed-off-by: NJohannes Weiner <hannes@saeurebad.de>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Yinghai Lu <yhlu.kernel@gmail.com>
    Cc: Andi Kleen <andi@firstfloor.org>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    e2bf3cae
bootmem.c 17.1 KB