]> granicus.if.org Git - spl/commit
Use __get_free_pages() for emergency objects
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 15 Jan 2015 23:11:45 +0000 (15:11 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 16 Jan 2015 21:58:11 +0000 (13:58 -0800)
commitee33517452020c3cd630c432038c735ea41bd1c9
treedae6559fd7b0cc5e919d94fea526ef0b44d526d2
parent436ad60faa971dc62f30ebd5c79fa55722234147
Use __get_free_pages() for emergency objects

The __get_free_pages() function must be used in place of kmalloc()
to ensure the __GFP_COMP is strictly honored.  This is due to
kmalloc() being layered on the generic Linux slab caches.  It
wasn't until recently that all caches were created using __GFP_COMP.
This means that it is possible for a kmalloc() which passed the
__GFP_COMP flag to be returned a non-compound allocation.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
include/sys/kmem_cache.h
module/spl/spl-kmem-cache.c