summaryrefslogtreecommitdiff
path: root/fs/cachefiles
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cachefiles')
-rw-r--r--fs/cachefiles/daemon.c2
-rw-r--r--fs/cachefiles/io.c4
-rw-r--r--fs/cachefiles/volume.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/fs/cachefiles/daemon.c b/fs/cachefiles/daemon.c
index 99795864bcb3..4117b145ac94 100644
--- a/fs/cachefiles/daemon.c
+++ b/fs/cachefiles/daemon.c
@@ -102,7 +102,7 @@ static int cachefiles_daemon_open(struct inode *inode, struct file *file)
return -EBUSY;
/* allocate a cache record */
- cache = kzalloc_obj(struct cachefiles_cache, GFP_KERNEL);
+ cache = kzalloc_obj(struct cachefiles_cache);
if (!cache) {
cachefiles_open = 0;
return -ENOMEM;
diff --git a/fs/cachefiles/io.c b/fs/cachefiles/io.c
index 7b9d547ecee6..eaf47851c65f 100644
--- a/fs/cachefiles/io.c
+++ b/fs/cachefiles/io.c
@@ -132,7 +132,7 @@ static int cachefiles_read(struct netfs_cache_resources *cres,
}
ret = -ENOMEM;
- ki = kzalloc_obj(struct cachefiles_kiocb, GFP_KERNEL);
+ ki = kzalloc_obj(struct cachefiles_kiocb);
if (!ki)
goto presubmission_error;
@@ -298,7 +298,7 @@ int __cachefiles_write(struct cachefiles_object *object,
file, file_inode(file)->i_ino, start_pos, len,
i_size_read(file_inode(file)));
- ki = kzalloc_obj(struct cachefiles_kiocb, GFP_KERNEL);
+ ki = kzalloc_obj(struct cachefiles_kiocb);
if (!ki) {
if (term_func)
term_func(term_func_priv, -ENOMEM);
diff --git a/fs/cachefiles/volume.c b/fs/cachefiles/volume.c
index 655de0cef530..6c0da61362ee 100644
--- a/fs/cachefiles/volume.c
+++ b/fs/cachefiles/volume.c
@@ -28,7 +28,7 @@ void cachefiles_acquire_volume(struct fscache_volume *vcookie)
_enter("");
- volume = kzalloc_obj(struct cachefiles_volume, GFP_KERNEL);
+ volume = kzalloc_obj(struct cachefiles_volume);
if (!volume)
return;
volume->vcookie = vcookie;