ceph: drop negative child dentries before try pruning inode's alias
authorYan, Zheng <zyan@redhat.com>
Thu, 30 Nov 2017 03:59:22 +0000 (11:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:10:19 +0000 (10:10 +0100)
commiteae219a2fc5554d86b9ac4d31bef73c273e926c0
treea72bf8676042a537ded006d8178d8cca2d9c98e9
parent318cea7d8d801cfa70f5b3a3a991425cd502b574
ceph: drop negative child dentries before try pruning inode's alias

commit 040d786032bf59002d374b86d75b04d97624005c upstream.

Negative child dentry holds reference on inode's alias, it makes
d_prune_aliases() do nothing.

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