From 957b8d41317949ced3d42245ebfc6be35a6909e2 Mon Sep 17 00:00:00 2001 From: huanwen ren Date: Tue, 13 Dec 2016 12:05:46 +0000 Subject: [PATCH] client: don't need inode when request CEPH_MDS_OP_LOOKUPPARENT Signed-off-by: huanwen ren --- src/client/Client.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/Client.cc b/src/client/Client.cc index bfc1cfb5df7c37..041faba76ad915 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -7964,7 +7964,7 @@ int Client::lookup_parent(Inode *ino, const UserPerm& perms, Inode **parent) return 0; } - if (ino->is_root) { + if (ino->is_root()) { *parent = NULL; ldout(cct, 3) << "ino is root, no parent" << dendl; return 0; @@ -7973,7 +7973,6 @@ int Client::lookup_parent(Inode *ino, const UserPerm& perms, Inode **parent) MetaRequest *req = new MetaRequest(CEPH_MDS_OP_LOOKUPPARENT); filepath path(ino->ino); req->set_filepath(path); - req->set_inode(ino); InodeRef target; int r = make_request(req, perms, &target, NULL, rand() % mdsmap->get_num_in_mds());