]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: drop Client::lookup_parent
authorJeff Layton <jlayton@redhat.com>
Thu, 30 May 2019 19:52:11 +0000 (15:52 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 17 Jun 2019 20:11:31 +0000 (13:11 -0700)
Nothing calls this method.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 5c419b64755c200d43b60d1b435f09a4e5b17f7e)

src/client/Client.cc
src/client/Client.h

index 55a55b6bd18712b19ff615df525d2780f2c80ced..98e79044015a8c6f41ecd22c9748f86ded9fe289 100644 (file)
@@ -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`.
index a671e147cff3c5122fe0c93ed6e258b5dfb490fc..c7c706c06a9a509fb5aa594604511ea837e9e5a3 100644 (file)
@@ -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);