]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove unused purge_prealloc_ino
authorJohn Spray <john.spray@redhat.com>
Tue, 22 Jul 2014 11:16:26 +0000 (12:16 +0100)
committerJohn Spray <john.spray@redhat.com>
Tue, 29 Jul 2014 21:32:05 +0000 (22:32 +0100)
Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/MDCache.cc
src/mds/MDCache.h

index d651816ef6fa9abbc333755242384e2ff0cc2ff8..deb517e3771030b35a3cd4d4e07320c862f62428 100644 (file)
@@ -5913,16 +5913,6 @@ void MDCache::do_file_recover()
   recovery_queue.advance();
 }
 
-void MDCache::purge_prealloc_ino(inodeno_t ino, Context *fin)
-{
-  object_t oid = CInode::get_object_name(ino, frag_t(), "");
-  object_locator_t oloc(mds->mdsmap->get_metadata_pool());
-
-  dout(10) << "purge_prealloc_ino " << ino << " oid " << oid << dendl;
-  SnapContext snapc;
-  mds->objecter->remove(oid, oloc, snapc, ceph_clock_now(g_ceph_context), 0, 0, fin);
-}  
-
 // ===============================================================================
 
 
index 43d83093155dcbde6a9969903dee084aa61c4b61..e6ed1cf21aad86801bd149223810df29dd05f87a 100644 (file)
@@ -537,8 +537,6 @@ public:
   void queue_file_recover(CInode *in);
   void _queued_file_recover_cow(CInode *in, MutationRef& mut);
 
-  void purge_prealloc_ino(inodeno_t ino, Context *fin);
-
   // subsystems
   Migrator *migrator;