ceph: cleanup splice_dentry()
authorYan, Zheng <zyan@redhat.com>
Thu, 25 Oct 2018 09:30:30 +0000 (17:30 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 26 Dec 2018 14:56:03 +0000 (15:56 +0100)
commit2bf996ac48326645ffe5985edfca307838f8eafe
tree6453990e24f7aea5827c99acb3ce15710dc11144
parent8fe28cb58bcb235034b64cbbb7550a8a43fd88be
ceph: cleanup splice_dentry()

splice_dentry() may drop the original dentry and return other
dentry. It relies on its caller to update pointer that points
to the dropped dentry. This is error-prone.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/inode.c