ceph: fix dentry leak in splice_dentry()
authorYan, Zheng <zyan@redhat.com>
Tue, 19 Jun 2018 10:20:34 +0000 (18:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:12:33 +0000 (13:12 +0200)
commit01d012fe089af02616c00cde45665fa6d895a4ff
tree50aa5a8c688d450af72595ab318f069f6ccc66e8
parentf6a67684626cf03b317ccc4c6d5bac99822d1b06
ceph: fix dentry leak in splice_dentry()

[ Upstream commit 8b8f53af1ed9df88a4c0fbfdf3db58f62060edf3 ]

In any case, d_splice_alias() does not drop reference of original
dentry.

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: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/inode.c