diff options
author | Brian Behlendorf <[email protected]> | 2014-10-01 16:58:57 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-10-17 15:11:51 -0700 |
commit | 9f36cace4154f7dd855c42aae2eb13a6e1d79362 (patch) | |
tree | c9fea34ef091cdf7dd40043af0bfc5b1d5c8cb0c /include/sys | |
parent | d227e114edd65356c928b660c19d6f1f471c9f8d (diff) |
Remove kmalloc_node() compatibility code
The kmalloc_node() function has been available since Linux 2.6.12.
There is no longer a need to maintain this compatibility code.
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/kmem.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/sys/kmem.h b/include/sys/kmem.h index 3418d3dd4..f38d364e2 100644 --- a/include/sys/kmem.h +++ b/include/sys/kmem.h @@ -135,7 +135,6 @@ kzalloc_nofail(size_t size, gfp_t flags) static inline void * kmalloc_node_nofail(size_t size, gfp_t flags, int node) { -#ifdef HAVE_KMALLOC_NODE void *ptr; sanitize_flags(current, &flags); @@ -145,9 +144,6 @@ kmalloc_node_nofail(size_t size, gfp_t flags, int node) } while (ptr == NULL && (flags & __GFP_WAIT)); return ptr; -#else - return kmalloc_nofail(size, flags); -#endif /* HAVE_KMALLOC_NODE */ } static inline void * |