mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ceph: initialize fields on new dentry_infos
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
7d8cb26d7d
commit
36e21687e6
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue