]> asedeno.scripts.mit.edu Git - linux.git/commit
ceph: use ceph_mdsc_build_path instead of clone_dentry_name
authorJeff Layton <jlayton@kernel.org>
Mon, 29 Apr 2019 15:51:02 +0000 (11:51 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 7 May 2019 17:22:37 +0000 (19:22 +0200)
commit964fff7491e4923e18ff08f2a254c4b94e3f83d6
treed9a103227b8586c155dd44ac8b566c151d8b6f19
parent69a10fb3f4b8769ffd44e4eaa662ab691fa61f4c
ceph: use ceph_mdsc_build_path instead of clone_dentry_name

While it may be slightly more efficient, it's probably not worthwhile to
optimize for the case that clone_dentry_name handles. We can get the
same result by just calling ceph_mdsc_build_path when the parent isn't
locked, with less code duplication.

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