提交 36e21687 编写于 作者: S Sage Weil

ceph: initialize fields on new dentry_infos

Signed-off-by: NSage Weil <sage@newdream.net>
上级 7d8cb26d
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册