• Jorge Zapata's avatar
    Add alloc_pages_exact() and free_pages_exact() from Timur Tabi · a6cd9ae7
    Jorge Zapata authored
    This patch will be included on mainstream version soon.
    alloc_pages_exact() is similar to alloc_pages(), except that it allocates
    the minimum number of pages to fulfill the request.  This is useful if you
    want to allocate a very large buffer that is slightly larger than an
    even power-of-two number of pages.  In that case, alloc_pages() will waste
    a lot of memory
    a6cd9ae7
page_alloc.c 108 KB