@@ -340,7 +340,7 @@ int alloc_init_flush_set(struct v9fs_session_info *v9ses)
fset->pages = kzalloc(num_pages * sizeof(*fset->pages), GFP_KERNEL);
if (!fset->pages)
goto error;
- fset->buf = kzalloc(num_pages << PAGE_SHIFT, GFP_USER);
+ fset->buf = kzalloc(num_pages << PAGE_SHIFT, GFP_KERNEL);
if (!fset->buf)
goto error;
spin_lock_init(&(fset->lock));
@@ -119,7 +119,7 @@ static int init_readpages_ctx(struct v9fs_readpages_ctx *ctx,
int num_pages)
{
memset(ctx, 0, sizeof(*ctx));
- ctx->buf = kmalloc(num_pages << PAGE_SHIFT, GFP_USER);
+ ctx->buf = kmalloc(num_pages << PAGE_SHIFT, GFP_KERNEL);
if (!ctx->buf)
return -ENOMEM;
ctx->filp = filp;