]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ceph: initialize fields on new dentry_infos
authorSage Weil <sage@newdream.net>
Tue, 24 Aug 2010 23:23:48 +0000 (16:23 -0700)
committerSage Weil <sage@newdream.net>
Tue, 24 Aug 2010 23:24:19 +0000 (16:24 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/dir.c

index 67bbb41d5526fcbdfb74f48f0e261b59b957ef9c..6e4f43ff23ec587050eab1b0e735e8d519827c85 100644 (file)
@@ -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 */