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:07:16 +0000 (10:07 +0100)
commite081bd0d70bddbf912f6f7f0f82e3e1ac2c52ae6
tree86727b5f21af145c199b21682793819b41c869b9
parent14513e49c43cd3149a03ff9e1c223c3d5803ad09
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