summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-08-25 01:23:48 +0200
committerSage Weil <sage@newdream.net>2010-08-25 01:24:19 +0200
commit36e21687e6e51c4225c42e6291938363f7bbfa7c (patch)
tree15f30bf1e622b564b6663217cf99c75aad03fae3 /fs/ceph
parentceph: maintain i_head_snapc when any caps are dirty, not just for data (diff)
downloadlinux-36e21687e6e51c4225c42e6291938363f7bbfa7c.tar.xz
linux-36e21687e6e51c4225c42e6291938363f7bbfa7c.zip
ceph: initialize fields on new dentry_infos
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph')
-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 */