From e91e58ef66758d32ca84b7d6c1e501f99c0ffb20 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Fri, 18 Oct 2019 19:18:19 -0400 Subject: [PATCH] Revert "env: implement vmalloc with GFP flags" This reverts commit c5165838e558b010af93beebfa1c3359b8c6fe8b. --- modules/cas_cache/ocf_env.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/modules/cas_cache/ocf_env.h b/modules/cas_cache/ocf_env.h index 7e30513..3237d44 100644 --- a/modules/cas_cache/ocf_env.h +++ b/modules/cas_cache/ocf_env.h @@ -40,24 +40,14 @@ static inline void env_free(const void *ptr) kfree(ptr); } -static inline void *env_vmalloc_flags(size_t size, int flags) -{ - return __vmalloc(size, flags | __GFP_HIGHMEM, PAGE_KERNEL); -} - -static inline void *env_vzalloc_flags(size_t size, int flags) -{ - return env_vmalloc_flags(size, flags | __GFP_ZERO); -} - static inline void *env_vmalloc(size_t size) { - return env_vmalloc_flags(size, GFP_KERNEL); + return vmalloc(size); } static inline void *env_vzalloc(size_t size) { - return env_vzalloc_flags(size, GFP_KERNEL); + return vzalloc(size); } static inline void env_vfree(const void *ptr)