[PATCH v4 08/14] vfs_btrfs: fix copy-chunk dest unlock args
David Disseldorp
ddiss at samba.org
Mon Nov 18 06:54:33 MST 2013
src_fsp used instead of dest_fsp for unlock.
Signed-off-by: David Disseldorp <ddiss at samba.org>
---
source3/modules/vfs_btrfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source3/modules/vfs_btrfs.c b/source3/modules/vfs_btrfs.c
index 36d6120..66bb482 100644
--- a/source3/modules/vfs_btrfs.c
+++ b/source3/modules/vfs_btrfs.c
@@ -112,7 +112,7 @@ static struct tevent_req *btrfs_copy_chunk_send(struct vfs_handle_struct *handle
cr_args.src_length = (uint64_t)num;
ret = ioctl(dest_fsp->fh->fd, BTRFS_IOC_CLONE_RANGE, &cr_args);
- SMB_VFS_STRICT_UNLOCK(src_fsp->conn, src_fsp, &dest_lck);
+ SMB_VFS_STRICT_UNLOCK(dest_fsp->conn, dest_fsp, &dest_lck);
SMB_VFS_STRICT_UNLOCK(src_fsp->conn, src_fsp, &src_lck);
if (ret < 0) {
/*
--
1.8.1.4
More information about the samba-technical
mailing list