]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove redundant journal inode
authorJohn Spray <john.spray@redhat.com>
Sat, 7 Feb 2015 12:50:56 +0000 (12:50 +0000)
committerJohn Spray <john.spray@redhat.com>
Tue, 17 Feb 2015 14:23:22 +0000 (14:23 +0000)
This is unused, and inaccurate with respect to the journal
pointer stuff added to MDLog a while back.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/MDCache.cc

index f62afae4e4ab0e326ba93fec4a92201362230776..fab12f2299e518449de79b94dc2e1b53472c848e 100644 (file)
@@ -448,13 +448,6 @@ void MDCache::create_mydir_hierarchy(MDSGather *gather)
     stray->store_backtrace(gather->new_sub());
   }
 
-  CInode *journal = create_system_inode(MDS_INO_LOG_OFFSET + mds->whoami, S_IFREG);
-  string name = "journal";
-  CDentry *jdn = mydir->add_primary_dentry(name, journal);
-  jdn->_mark_dirty(mds->mdlog->get_current_segment());
-
-  mydir->fnode.fragstat.nfiles++;
-  mydir->fnode.rstat.rfiles++;
   mydir->fnode.accounted_fragstat = mydir->fnode.fragstat;
   mydir->fnode.accounted_rstat = mydir->fnode.rstat;
 
@@ -463,7 +456,6 @@ void MDCache::create_mydir_hierarchy(MDSGather *gather)
   ++myin->inode.rstat.rsubdirs;
   myin->inode.accounted_rstat = myin->inode.rstat;
 
-
   mydir->mark_complete();
   mydir->mark_dirty(mydir->pre_dirty(), ls);
   mydir->commit(0, gather->new_sub());