Closed ramosian-glider closed 4 years ago
No error checking for now, we just steal the freelist from a random kmalloc cache from time to time, and route SLUB's slow path into our allocator that returns pages.
Signed-off-by: Alexander Potapenko glider@google.com
@melver please take a look. I took the code from my github and changed guarded_alloc() and guarded_free() to work with a fixed page pool.
guarded_alloc()
guarded_free()
No error checking for now, we just steal the freelist from a random kmalloc cache from time to time, and route SLUB's slow path into our allocator that returns pages.
Signed-off-by: Alexander Potapenko glider@google.com