]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove redundant 'journal' file open
authorJohn Spray <john.spray@redhat.com>
Thu, 30 Apr 2015 15:28:23 +0000 (16:28 +0100)
committerJohn Spray <john.spray@redhat.com>
Fri, 1 May 2015 12:00:57 +0000 (13:00 +0100)
Follow up to " mds: remove redundant journal inode", for
the case in open_root as opposed to create_mydir

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

index 041c691b3a3ad6cddadc72b75d4daa866119dde4..52baafe9dddf601fce61d72ed049a7745721d4ae 100644 (file)
@@ -671,15 +671,6 @@ void MDCache::populate_mydir()
     }
   }
 
-  // open or create journal file
-  string jname("journal");
-  CDentry *jdn = mydir->lookup(jname);
-  if (!jdn || !jdn->get_linkage()->get_inode()) {
-    _create_system_file(mydir, jname.c_str(), create_system_inode(MDS_INO_LOG_OFFSET + mds->whoami, S_IFREG),
-                       new C_MDS_RetryOpenRoot(this));
-    return;
-  }
-
   // okay!
   dout(10) << "populate_mydir done" << dendl;
   assert(!open);