OSDN Git Service

Revert "ceph: fix dentry leak in splice_dentry()"
authorYan, Zheng <zyan@redhat.com>
Thu, 27 Sep 2018 13:16:05 +0000 (21:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:19:16 +0000 (09:19 +0100)
commite2496105bca6a05fe357d5c5d7fa6dce25db301d
tree565a1ef73e66cd06466ae43a9e82f9119fa521ff
parent542705afd8abefe743f15941b706a0a89ad66493
Revert "ceph: fix dentry leak in splice_dentry()"

commit efe328230dc01aa0b1269aad0b5fae73eea4677a upstream.

This reverts commit 8b8f53af1ed9df88a4c0fbfdf3db58f62060edf3.

splice_dentry() is used by three places. For two places, req->r_dentry
is passed to splice_dentry(). In the case of error, req->r_dentry does
not get updated. So splice_dentry() should not drop reference.

Cc: stable@vger.kernel.org # 4.18+
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/inode.c