From 9f36cace4154f7dd855c42aae2eb13a6e1d79362 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 1 Oct 2014 16:58:57 -0400 Subject: 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 --- include/sys/kmem.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include/sys') 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 * -- cgit v1.2.3