Add alloc_pages_exact() and free_pages_exact() from Timur Tabi
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
Showing
Please register or sign in to comment