From: John Spray Date: Fri, 4 Nov 2016 16:48:26 +0000 (+0000) Subject: client: remove unneeded layout on MClientCaps X-Git-Tag: v11.1.0~335^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=469ba8293bb8414cbc8a7190bc812b34e670afe6;p=ceph.git client: remove unneeded layout on MClientCaps This field is needed by the client when it receives an MClientCaps from the server, but it is never read on the serevr when set by the client. This change is aimed at making the code easier to understand by removing something redundant (it's not a performance optimisation!) Signed-off-by: John Spray --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 2ad844266df1..d741528a2c52 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -3250,7 +3250,6 @@ void Client::send_cap(Inode *in, MetaSession *session, Cap *cap, m->head.xattr_version = in->xattr_version; } - m->set_layout(in->layout); m->size = in->size; m->max_size = in->max_size; m->truncate_seq = in->truncate_seq;