ceph: ensure d_name stability in ceph_dentry_hash()
authorJeff Layton <jlayton@kernel.org>
Wed, 17 Apr 2019 16:58:28 +0000 (12:58 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 23 Apr 2019 19:37:54 +0000 (21:37 +0200)
commit76a495d666e5043ffc315695f8241f5e94a98849
tree93ace9f5486aa96bdf96cb120f97806592946da0
parent1bcb344086f3ecf8d6705f6d708441baa823beb3
ceph: ensure d_name stability in ceph_dentry_hash()

Take the d_lock here to ensure that d_name doesn't change.

Cc: stable@vger.kernel.org
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/dir.c