summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-08-24 16:23:48 -0700
committerSage Weil <sage@newdream.net>2010-08-24 16:24:19 -0700
commit36e21687e6e51c4225c42e6291938363f7bbfa7c (patch)
tree15f30bf1e622b564b6663217cf99c75aad03fae3
parent7d8cb26d7dcb911f110b7762bd5941e8f009d6c3 (diff)
downloadtalos-obmc-linux-36e21687e6e51c4225c42e6291938363f7bbfa7c.tar.gz
talos-obmc-linux-36e21687e6e51c4225c42e6291938363f7bbfa7c.zip
ceph: initialize fields on new dentry_infos
Signed-off-by: Sage Weil <sage@newdream.net>
-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 67bbb41d5526..6e4f43ff23ec 100644
--- a/fs/ceph/dir.c
+++ b/fs/ceph/dir.c
@@ -46,7 +46,7 @@ int ceph_init_dentry(struct dentry *dentry)
else
dentry->d_op = &ceph_snap_dentry_ops;
- di = kmem_cache_alloc(ceph_dentry_cachep, GFP_NOFS);
+ di = kmem_cache_alloc(ceph_dentry_cachep, GFP_NOFS | __GFP_ZERO);
if (!di)
return -ENOMEM; /* oh well */
OpenPOWER on IntegriCloud