diff options
author | Michael Niewöhner <[email protected]> | 2020-06-09 01:33:46 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-08 16:33:46 -0700 |
commit | 32f26eaa70fe9e8aea79311123879f885f674d45 (patch) | |
tree | e04373f14fdf6121c428101d6bbc364671a2e1e0 /module | |
parent | 080102a1b686a36adaec3a11a9778783462429e8 (diff) |
Move GFP flags kernel compatibility code
Move the GFP flags kernel compat code from c file to kmem header.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Michael Niewöhner <[email protected]>
Closes #10424
Diffstat (limited to 'module')
-rw-r--r-- | module/os/linux/spl/spl-kmem.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/module/os/linux/spl/spl-kmem.c b/module/os/linux/spl/spl-kmem.c index 0bb82ac7a..f19421cfc 100644 --- a/module/os/linux/spl/spl-kmem.c +++ b/module/os/linux/spl/spl-kmem.c @@ -132,15 +132,6 @@ kmem_strfree(char *str) } EXPORT_SYMBOL(kmem_strfree); -/* Kernel compatibility for <4.13 */ -#ifndef __GFP_RETRY_MAYFAIL -#define __GFP_RETRY_MAYFAIL __GFP_REPEAT -#endif -/* Kernel compatibility for <4.4 */ -#ifndef __GFP_RECLAIM -#define __GFP_RECLAIM __GFP_WAIT -#endif - void * spl_kvmalloc(size_t size, gfp_t lflags) { |