aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/kmem.h
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2014-10-01 16:58:57 -0400
committerBrian Behlendorf <[email protected]>2014-10-17 15:11:51 -0700
commit9f36cace4154f7dd855c42aae2eb13a6e1d79362 (patch)
treec9fea34ef091cdf7dd40043af0bfc5b1d5c8cb0c /include/sys/kmem.h
parentd227e114edd65356c928b660c19d6f1f471c9f8d (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/kmem.h')
-rw-r--r--include/sys/kmem.h4
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 *