mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
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 <behlendorf1@llnl.gov>
This commit is contained in:
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user