From: Jeff Layton Date: Thu, 30 May 2019 19:52:11 +0000 (-0400) Subject: client: drop Client::lookup_parent X-Git-Tag: v14.2.2~35^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=df71f8c5b8fef963bb2f8de4e72402717a8010cc;p=ceph.git client: drop Client::lookup_parent Nothing calls this method. Signed-off-by: Jeff Layton (cherry picked from commit 5c419b64755c200d43b60d1b435f09a4e5b17f7e) --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 55a55b6bd18..98e79044015 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -8613,12 +8613,6 @@ int Client::_lookup_parent(Inode *ino, const UserPerm& perms, Inode **parent) return r; } -int Client::lookup_parent(Inode *ino, const UserPerm& perms, Inode **parent) -{ - std::lock_guard lock(client_lock); - return _lookup_parent(ino, perms, parent); -} - /** * Populate the parent dentry for `ino`, provided it is * a child of `parent`. diff --git a/src/client/Client.h b/src/client/Client.h index a671e147cff..c7c706c06a9 100644 --- a/src/client/Client.h +++ b/src/client/Client.h @@ -413,7 +413,6 @@ public: int lookup_hash(inodeno_t ino, inodeno_t dirino, const char *name, const UserPerm& perms); int lookup_ino(inodeno_t ino, const UserPerm& perms, Inode **inode=NULL); - int lookup_parent(Inode *in, const UserPerm& perms, Inode **parent=NULL); int lookup_name(Inode *in, Inode *parent, const UserPerm& perms); int close(int fd); loff_t lseek(int fd, loff_t offset, int whence);