ceph: use pathlen values returned by set_request_path_attr
authorJeff Layton <jlayton@kernel.org>
Wed, 17 Apr 2019 18:23:17 +0000 (14:23 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 7 May 2019 17:22:37 +0000 (19:22 +0200)
commitc1dfc277239c73f68a6af6979acec1989a5e6864
treefafa67ffb86d1023246ad304261d622c1a46bf4f
parentf77f21bb28367d0ac4861a24da1db118bba850e6
ceph: use pathlen values returned by set_request_path_attr

We make copies of the dentry name in set_request_path_attr, but then
create_request_message re-fetches the lengths out of the dentry. While
we don't currently set the *_drop fields unless the parents are locked,
it's still better not to rely on that sort of implicit assumption.

Use the pathlen values that set_request_path_attr returned instead, as
they will always be correct for the returned paths themselves.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c