From: John Spray Date: Sat, 7 Feb 2015 12:50:56 +0000 (+0000) Subject: mds: remove redundant journal inode X-Git-Tag: v9.0.0~246^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=07f297f4dc54b7a0e1b5bed9e1f9095650ec8744;p=ceph.git mds: remove redundant journal inode This is unused, and inaccurate with respect to the journal pointer stuff added to MDLog a while back. Signed-off-by: John Spray --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index f62afae4e4ab..fab12f2299e5 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -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());