]> 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)
committerJeff Layton <jlayton@redhat.com>
Mon, 12 Aug 2019 12:45:55 +0000 (08:45 -0400)
Nothing calls this method.

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

Conflicts:
src/client/Client.cc
    - Mutex::Locker -> std::lock_guard
src/client/Client.h
    - contextual merge conflict

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

index 2b8673ff002cc4abd776f038d429c53bdfa9a5f4..020ad16c408486ab4e53907edf2df26144b8479a 100644 (file)
@@ -8403,12 +8403,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)
-{
-  Mutex::Locker lock(client_lock);
-  return _lookup_parent(ino, perms, parent);
-}
-
 /**
  * Populate the parent dentry for `ino`, provided it is
  * a child of `parent`.
index 9bd77dd90196d178636c94d1e89982ad0267bd86..182fd93536f8990c2ccdbe1ab8b3336a723bd1e4 100644 (file)
@@ -1060,7 +1060,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);