summaryrefslogtreecommitdiff
path: root/fs/ceph/dir.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2016-03-13 10:26:29 +0300
committerIlya Dryomov <idryomov@gmail.com>2016-03-25 20:51:56 +0300
commit99ec269779f1fde25356e14299419551cdb54443 (patch)
tree7c440ee9ddd489d406174875a2aad9c8f4452cb1 /fs/ceph/dir.c
parent03d9440676163e965cb77d03c102b461d8ccb482 (diff)
downloadlinux-99ec269779f1fde25356e14299419551cdb54443.tar.xz
ceph: use kmem_cache_zalloc
Use kmem_cache_zalloc() instead of kmem_cache_alloc() with flag GFP_ZERO. Signed-off-by: Geliang Tang <geliangtang@163.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/dir.c')
-rw-r--r--fs/ceph/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index d6c13f9c9317..fadc243dfb28 100644
--- a/fs/ceph/dir.c
+++ b/fs/ceph/dir.c
@@ -38,7 +38,7 @@ int ceph_init_dentry(struct dentry *dentry)
if (dentry->d_fsdata)
return 0;
- di = kmem_cache_alloc(ceph_dentry_cachep, GFP_KERNEL | __GFP_ZERO);
+ di = kmem_cache_zalloc(ceph_dentry_cachep, GFP_KERNEL);
if (!di)
return -ENOMEM; /* oh well */