From: Jeff Layton Date: Thu, 30 May 2019 19:52:11 +0000 (-0400) Subject: client: drop Client::lookup_parent X-Git-Tag: v15.1.0~2557^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5c419b64755c200d43b60d1b435f09a4e5b17f7e;p=ceph.git client: drop Client::lookup_parent Nothing calls this method. Signed-off-by: Jeff Layton --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 6af7ba04aaed..7b77f1248ae7 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -8615,12 +8615,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 003c628b0cf4..69325b0209e6 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);