r22907: Fix the build with --enable-profiling-data
authorVolker Lendecke <vlendec@samba.org>
Tue, 15 May 2007 14:58:01 +0000 (14:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:22:06 +0000 (12:22 -0500)
source/modules/vfs_default.c

index 6410e7aad5f320246dc702ba532f54f54a85cbe9..1fc03e046f0f9f00cc20f674aa3e5201fb4a33fc 100644 (file)
@@ -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;