]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
client: drop Client::lookup_parent
authorJeff Layton <jlayton@redhat.com>
Thu, 30 May 2019 19:52:11 +0000 (15:52 -0400)
committerJeff Layton <jlayton@redhat.com>
Mon, 3 Jun 2019 18:01:51 +0000 (14:01 -0400)
Nothing calls this method.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/Client.cc
src/client/Client.h

index 6af7ba04aaedd7a4758b6f9b7bd915092f2beb67..7b77f1248ae7fd177328e0082e77705609388034 100644 (file)
@@ -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`.
index 003c628b0cf4c9146fd9c13a258add4eb03c28b5..69325b0209e65bb36f97dad0f514305d25acfdb3 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);