Revert "env: implement vmalloc with GFP flags"

This reverts commit c5165838e5.
This commit is contained in:
Adam Rutkowski 2019-10-18 19:18:19 -04:00
parent 1d25ace1cb
commit e91e58ef66

View File

@ -40,24 +40,14 @@ static inline void env_free(const void *ptr)
kfree(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) 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) 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) static inline void env_vfree(const void *ptr)