@@ -47,9 +47,9 @@ static void zcomp_strm_free(struct zcomp_strm *zstrm)
47
47
* allocate new zcomp_strm structure with ->tfm initialized by
48
48
* backend, return NULL on error
49
49
*/
50
- static struct zcomp_strm * zcomp_strm_alloc (struct zcomp * comp , gfp_t flags )
50
+ static struct zcomp_strm * zcomp_strm_alloc (struct zcomp * comp )
51
51
{
52
- struct zcomp_strm * zstrm = kmalloc (sizeof (* zstrm ), flags );
52
+ struct zcomp_strm * zstrm = kmalloc (sizeof (* zstrm ), GFP_KERNEL );
53
53
if (!zstrm )
54
54
return NULL ;
55
55
@@ -58,7 +58,7 @@ static struct zcomp_strm *zcomp_strm_alloc(struct zcomp *comp, gfp_t flags)
58
58
* allocate 2 pages. 1 for compressed data, plus 1 extra for the
59
59
* case when compressed size is larger than the original one
60
60
*/
61
- zstrm -> buffer = (void * )__get_free_pages (flags | __GFP_ZERO , 1 );
61
+ zstrm -> buffer = (void * )__get_free_pages (GFP_KERNEL | __GFP_ZERO , 1 );
62
62
if (IS_ERR_OR_NULL (zstrm -> tfm ) || !zstrm -> buffer ) {
63
63
zcomp_strm_free (zstrm );
64
64
zstrm = NULL ;
@@ -169,7 +169,7 @@ static int __zcomp_cpu_notifier(struct zcomp *comp,
169
169
case CPU_UP_PREPARE :
170
170
if (WARN_ON (* per_cpu_ptr (comp -> stream , cpu )))
171
171
break ;
172
- zstrm = zcomp_strm_alloc (comp , GFP_KERNEL );
172
+ zstrm = zcomp_strm_alloc (comp );
173
173
if (IS_ERR_OR_NULL (zstrm )) {
174
174
pr_err ("Can't allocate a compression stream\n" );
175
175
return NOTIFY_BAD ;
0 commit comments