Even in cases where vfs_ceph_ll_link fails, we need to do iput in order
to decrement inode's ref-count.
Signed-off-by: Shachar Sharon <ssharon@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Shweta Sodani <ssodani@redhat.com>
Reviewed-by: Vinit Agnihotri <vagnihot@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
}
result = vfs_ceph_ll_link(handle, dst_dircfh, newname, &iref);
- if (result != 0) {
- goto out;
- }
-
vfs_ceph_iput(handle, &iref);
out:
DBG_DEBUG("[CEPH] link done: result=%d\n", result);