summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/modules/vfs_default.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index 6410e7aad5..1fc03e046f 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -781,10 +781,11 @@ static BOOL vfswrap_lock(vfs_handle_struct *handle, files_struct *fsp, int fd, i
{
BOOL result;
+ START_PROFILE(syscall_fcntl_lock);
+
/* SMB_VFS_GETLOCK should be used to query lock status. */
SMB_ASSERT(op != SMB_F_GETLK);
- START_PROFILE(syscall_fcntl_lock);
result = fcntl_lock(fd, op, offset, count, type);
END_PROFILE(syscall_fcntl_lock);
return result;