|
@@ -97,11 +97,6 @@ void *__aa_kvmalloc(size_t size, gfp_t flags)
|
|
|
if (size <= (16*PAGE_SIZE))
|
|
if (size <= (16*PAGE_SIZE))
|
|
|
buffer = kmalloc(size, flags | GFP_NOIO | __GFP_NOWARN);
|
|
buffer = kmalloc(size, flags | GFP_NOIO | __GFP_NOWARN);
|
|
|
if (!buffer) {
|
|
if (!buffer) {
|
|
|
- /* see kvfree for why size must be at least work_struct size
|
|
|
|
|
- * when allocated via vmalloc
|
|
|
|
|
- */
|
|
|
|
|
- if (size < sizeof(struct work_struct))
|
|
|
|
|
- size = sizeof(struct work_struct);
|
|
|
|
|
if (flags & __GFP_ZERO)
|
|
if (flags & __GFP_ZERO)
|
|
|
buffer = vzalloc(size);
|
|
buffer = vzalloc(size);
|
|
|
else
|
|
else
|