diff --git a/modules/cas_cache/ocf_env.h b/modules/cas_cache/ocf_env.h index 3773d0c..bdc6f2a 100644 --- a/modules/cas_cache/ocf_env.h +++ b/modules/cas_cache/ocf_env.h @@ -39,14 +39,24 @@ 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 vmalloc(size); + return env_vmalloc_flags(size, GFP_KERNEL); } static inline void *env_vzalloc(size_t size) { - return vzalloc(size); + return env_vzalloc_flags(size, GFP_KERNEL); } static inline void env_vfree(const void *ptr) diff --git a/ocf b/ocf index 1dfae0d..49d8f10 160000 --- a/ocf +++ b/ocf @@ -1 +1 @@ -Subproject commit 1dfae0d166441ade6537e0a290edf3fc329f74db +Subproject commit 49d8f10953250dea64af97bf37e17b9aa72dbfb8