summaryrefslogtreecommitdiff
path: root/fs/nfs/cache_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/cache_lib.c')
-rw-r--r--fs/nfs/cache_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/cache_lib.c b/fs/nfs/cache_lib.c
index ef6729568432..90fa1e4440be 100644
--- a/fs/nfs/cache_lib.c
+++ b/fs/nfs/cache_lib.c
@@ -96,7 +96,7 @@ struct nfs_cache_defer_req *nfs_cache_defer_req_alloc(void)
{
struct nfs_cache_defer_req *dreq;
- dreq = kzalloc(sizeof(*dreq), GFP_KERNEL);
+ dreq = kzalloc_obj(*dreq, GFP_KERNEL);
if (dreq) {
init_completion(&dreq->completion);
refcount_set(&dreq->count, 1);