Skip to content
  • Dave Hansen's avatar
    mm: break out page allocation warning code · a238ab5b
    Dave Hansen authored
    
    
    This originally started as a simple patch to give vmalloc() some more
    verbose output on failure on top of the plain page allocator messages.
    Johannes suggested that it might be nicer to lead with the vmalloc() info
    _before_ the page allocator messages.
    
    But, I do think there's a lot of value in what __alloc_pages_slowpath()
    does with its filtering and so forth.
    
    This patch creates a new function which other allocators can call instead
    of relying on the internal page allocator warnings.  It also gives this
    function private rate-limiting which separates it from other
    printk_ratelimit() users.
    
    Signed-off-by: default avatarDave Hansen <dave@linux.vnet.ibm.com>
    Cc: Johannes Weiner <hannes@cmpxchg.org>
    Cc: David Rientjes <rientjes@google.com>
    Cc: Michal Nazarewicz <mina86@mina86.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    a238ab5b