]> git.apps.os.sepia.ceph.com Git - ceph.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)
committerNathan Cutler <ncutler@suse.com>
Fri, 18 May 2018 13:30:34 +0000 (15:30 +0200)
fnode_t can initialize itself.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit 8dffe4eb954a20bdb5fddcbf02a752280b8a9816)

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);