From: Xiubo Li Date: Tue, 28 May 2024 04:20:03 +0000 (+0800) Subject: mds: cleanup the code to make it to be more readable X-Git-Tag: v18.2.5~528^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8230cf52041c008ac4fa5b83fe5a388fc249f763;p=ceph.git mds: cleanup the code to make it to be more readable Fixes: https://tracker.ceph.com/issues/63265 Signed-off-by: Xiubo Li (cherry picked from commit d48b169e40a94b6df578c57bc595187c94ef48f6) --- diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 6e429f7dc242..ca083118bd2d 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -4793,7 +4793,7 @@ void Server::handle_client_openc(MDRequestRef& mdr) } else if (mdr->client_request->get_connection()->has_feature(CEPH_FEATURE_REPLY_CREATE_INODE)) { dout(10) << "adding ino to reply to indicate inode was created" << dendl; // add the file created flag onto the reply if create_flags features is supported - encode(newi->ino(), mdr->reply_extra_bl); + encode(_inode->ino, mdr->reply_extra_bl); } journal_and_reply(mdr, newi, dn, le, fin);