]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
client: drop function _get_inodeno
authorJos Collin <jcollin@redhat.com>
Mon, 30 Apr 2018 04:33:55 +0000 (10:03 +0530)
committerJos Collin <jcollin@redhat.com>
Mon, 30 Apr 2018 04:34:04 +0000 (10:04 +0530)
Drop _get_inodeno() as per the comment in https://github.com/ceph/ceph/pull/21554.

Signed-off-by: Jos Collin <jcollin@redhat.com>
src/client/Client.cc
src/client/Client.h

index e9658b13e5fdf05864d484d0d7f9983eedbd6b3d..41a1856f1ef49bcbc6b6abb65fb5510eafe35cfe 100644 (file)
@@ -5367,13 +5367,6 @@ vinodeno_t Client::_get_vino(Inode *in)
   return vinodeno_t(in->ino, in->snapid);
 }
 
-inodeno_t Client::_get_inodeno(Inode *in)
-{
-  /* The caller must hold the client lock */
-  return in->ino;
-}
-
-
 /**
  * Resolve an MDS spec to a list of MDS daemon GIDs.
  *
@@ -10441,7 +10434,7 @@ void Client::_ll_drop_pins()
 
 bool Client::_ll_forget(Inode *in, int count)
 {
-  inodeno_t ino = _get_inodeno(in);
+  inodeno_t ino = in->ino;
 
   ldout(cct, 3) << __func__ << " " << ino << " " << count << dendl;
   tout(cct) << __func__ << std::endl;
index f9589f887e317a558b891a9087d99f14550562ac..e6fde183d288ac16daee4e5d6c874e4d644122f3 100644 (file)
@@ -874,7 +874,6 @@ private:
   int _getattr_for_perm(Inode *in, const UserPerm& perms);
 
   vinodeno_t _get_vino(Inode *in);
-  inodeno_t _get_inodeno(Inode *in);
 
   /*
    * These define virtual xattrs exposing the recursive directory