From: Sage Weil Date: Tue, 24 Aug 2010 23:23:48 +0000 (-0700) Subject: ceph: initialize fields on new dentry_infos X-Git-Tag: firefly_0821_release~9833^2~639^2~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=36e21687e6e51c4225c42e6291938363f7bbfa7c;p=firefly-linux-kernel-4.4.55.git ceph: initialize fields on new dentry_infos Signed-off-by: Sage Weil --- 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 */