]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: Do not memset fnode_t
authorAdam C. Emerson <aemerson@redhat.com>
Mon, 7 May 2018 20:24:17 +0000 (16:24 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 9 May 2018 17:26:29 +0000 (13:26 -0400)
fnode_t can initialize itself.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/mds/CDir.cc

index c345864e41c7d02140f0166e7f42796bc4deb153..e6796ee37c8e7b815b975455b4bf62880fcac8df 100644 (file)
@@ -208,8 +208,6 @@ CDir::CDir(CInode *in, frag_t fg, MDCache *mdcache, bool auth) :
   num_dentries_auth_subtree_nested(0),
   dir_auth(CDIR_AUTH_DEFAULT)
 {
-  memset(&fnode, 0, sizeof(fnode));
-
   // auth
   assert(in->is_dir());
   if (auth) state_set(STATE_AUTH);