From ab46bb3314b01bc4250050266b8922852caf5e46 Mon Sep 17 00:00:00 2001 From: Jos Collin Date: Mon, 30 Apr 2018 10:03:55 +0530 Subject: [PATCH] client: drop function _get_inodeno Drop _get_inodeno() as per the comment in https://github.com/ceph/ceph/pull/21554. Signed-off-by: Jos Collin --- src/client/Client.cc | 9 +-------- src/client/Client.h | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/client/Client.cc b/src/client/Client.cc index e9658b13e5f..41a1856f1ef 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -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; diff --git a/src/client/Client.h b/src/client/Client.h index f9589f887e3..e6fde183d28 100644 --- a/src/client/Client.h +++ b/src/client/Client.h @@ -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 -- 2.39.5