aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2015-01-15 15:11:45 -0800
committerBrian Behlendorf <[email protected]>2015-01-16 13:58:11 -0800
commitee33517452020c3cd630c432038c735ea41bd1c9 (patch)
treedae6559fd7b0cc5e919d94fea526ef0b44d526d2 /include
parent436ad60faa971dc62f30ebd5c79fa55722234147 (diff)
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 <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/sys/kmem_cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/kmem_cache.h b/include/sys/kmem_cache.h
index 9ac41e6ec..75a0a55b7 100644
--- a/include/sys/kmem_cache.h
+++ b/include/sys/kmem_cache.h
@@ -163,7 +163,7 @@ typedef struct spl_kmem_alloc {
typedef struct spl_kmem_emergency {
struct rb_node ske_node; /* Emergency tree linkage */
- void *ske_obj; /* Buffer address */
+ unsigned long ske_obj; /* Buffer address */
} spl_kmem_emergency_t;
typedef struct spl_kmem_cache {