diff options
-rw-r--r-- | examples/VFS/skel_opaque.c | 3 | ||||
-rw-r--r-- | examples/VFS/skel_transparent.c | 5 | ||||
-rw-r--r-- | source3/include/vfs.h | 6 | ||||
-rw-r--r-- | source3/include/vfs_macros.h | 8 | ||||
-rw-r--r-- | source3/locking/brlock.c | 7 | ||||
-rw-r--r-- | source3/modules/vfs_default.c | 3 | ||||
-rw-r--r-- | source3/modules/vfs_full_audit.c | 5 | ||||
-rw-r--r-- | source3/modules/vfs_time_audit.c | 5 |
8 files changed, 17 insertions, 25 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index 653c83e9fc..724dd7b210 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -590,8 +590,7 @@ static bool skel_brl_unlock_windows(struct vfs_handle_struct *handle, static bool skel_brl_cancel_windows(struct vfs_handle_struct *handle, struct byte_range_lock *br_lck, - struct lock_struct *plock, - struct blocking_lock_record *blr) + struct lock_struct *plock) { errno = ENOSYS; return false; diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index 319e9d1803..329b016d23 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -710,10 +710,9 @@ static bool skel_brl_unlock_windows(struct vfs_handle_struct *handle, static bool skel_brl_cancel_windows(struct vfs_handle_struct *handle, struct byte_range_lock *br_lck, - struct lock_struct *plock, - struct blocking_lock_record *blr) + struct lock_struct *plock) { - return SMB_VFS_NEXT_BRL_CANCEL_WINDOWS(handle, br_lck, plock, blr); + return SMB_VFS_NEXT_BRL_CANCEL_WINDOWS(handle, br_lck, plock); } static bool skel_strict_lock(struct vfs_handle_struct *handle, diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 72fab522a2..474b1e3a78 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -665,8 +665,7 @@ struct vfs_fn_pointers { bool (*brl_cancel_windows_fn)(struct vfs_handle_struct *handle, struct byte_range_lock *br_lck, - struct lock_struct *plock, - struct blocking_lock_record *blr); + struct lock_struct *plock); bool (*strict_lock_fn)(struct vfs_handle_struct *handle, struct files_struct *fsp, @@ -1083,8 +1082,7 @@ bool smb_vfs_call_brl_unlock_windows(struct vfs_handle_struct *handle, const struct lock_struct *plock); bool smb_vfs_call_brl_cancel_windows(struct vfs_handle_struct *handle, struct byte_range_lock *br_lck, - struct lock_struct *plock, - struct blocking_lock_record *blr); + struct lock_struct *plock); bool smb_vfs_call_strict_lock(struct vfs_handle_struct *handle, struct files_struct *fsp, struct lock_struct *plock); diff --git a/source3/include/vfs_macros.h b/source3/include/vfs_macros.h index 775befb495..de9f55fda8 100644 --- a/source3/include/vfs_macros.h +++ b/source3/include/vfs_macros.h @@ -374,10 +374,10 @@ #define SMB_VFS_NEXT_BRL_UNLOCK_WINDOWS(handle, msg_ctx, br_lck, plock) \ smb_vfs_call_brl_unlock_windows((handle)->next, (msg_ctx), (br_lck), (plock)) -#define SMB_VFS_BRL_CANCEL_WINDOWS(conn, br_lck, plock, blr) \ - smb_vfs_call_brl_cancel_windows((conn)->vfs_handles, (br_lck), (plock), (blr)) -#define SMB_VFS_NEXT_BRL_CANCEL_WINDOWS(handle, br_lck, plock, blr) \ - smb_vfs_call_brl_cancel_windows((handle)->next, (br_lck), (plock), (blr)) +#define SMB_VFS_BRL_CANCEL_WINDOWS(conn, br_lck, plock) \ + smb_vfs_call_brl_cancel_windows((conn)->vfs_handles, (br_lck), (plock)) +#define SMB_VFS_NEXT_BRL_CANCEL_WINDOWS(handle, br_lck, plock) \ + smb_vfs_call_brl_cancel_windows((handle)->next, (br_lck), (plock)) #define SMB_VFS_STRICT_LOCK(conn, fsp, plock) \ smb_vfs_call_strict_lock((conn)->vfs_handles, (fsp), (plock)) diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c index 1527a14071..e10f5ae255 100644 --- a/source3/locking/brlock.c +++ b/source3/locking/brlock.c @@ -1440,11 +1440,10 @@ NTSTATUS brl_lockquery(struct byte_range_lock *br_lck, bool smb_vfs_call_brl_cancel_windows(struct vfs_handle_struct *handle, struct byte_range_lock *br_lck, - struct lock_struct *plock, - struct blocking_lock_record *blr) + struct lock_struct *plock) { VFS_FIND(brl_cancel_windows); - return handle->fns->brl_cancel_windows_fn(handle, br_lck, plock, blr); + return handle->fns->brl_cancel_windows_fn(handle, br_lck, plock); } /**************************************************************************** @@ -1472,7 +1471,7 @@ bool brl_lock_cancel(struct byte_range_lock *br_lck, if (lock_flav == WINDOWS_LOCK) { ret = SMB_VFS_BRL_CANCEL_WINDOWS(br_lck->fsp->conn, br_lck, - &lock, blr); + &lock); } else { ret = brl_lock_cancel_default(br_lck, &lock); } diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index bc47e5a69c..78c249d796 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -2225,8 +2225,7 @@ static bool vfswrap_brl_unlock_windows(struct vfs_handle_struct *handle, static bool vfswrap_brl_cancel_windows(struct vfs_handle_struct *handle, struct byte_range_lock *br_lck, - struct lock_struct *plock, - struct blocking_lock_record *blr) + struct lock_struct *plock) { SMB_ASSERT(plock->lock_flav == WINDOWS_LOCK); diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c index 33058f4843..262b241147 100644 --- a/source3/modules/vfs_full_audit.c +++ b/source3/modules/vfs_full_audit.c @@ -1685,12 +1685,11 @@ static bool smb_full_audit_brl_unlock_windows(struct vfs_handle_struct *handle, static bool smb_full_audit_brl_cancel_windows(struct vfs_handle_struct *handle, struct byte_range_lock *br_lck, - struct lock_struct *plock, - struct blocking_lock_record *blr) + struct lock_struct *plock) { bool result; - result = SMB_VFS_NEXT_BRL_CANCEL_WINDOWS(handle, br_lck, plock, blr); + result = SMB_VFS_NEXT_BRL_CANCEL_WINDOWS(handle, br_lck, plock); do_log(SMB_VFS_OP_BRL_CANCEL_WINDOWS, (result == 0), handle, "%s:%llu-%llu:%d", fsp_str_do_log(brl_fsp(br_lck)), diff --git a/source3/modules/vfs_time_audit.c b/source3/modules/vfs_time_audit.c index f644ed1709..3a45ecdb88 100644 --- a/source3/modules/vfs_time_audit.c +++ b/source3/modules/vfs_time_audit.c @@ -1588,15 +1588,14 @@ static bool smb_time_audit_brl_unlock_windows(struct vfs_handle_struct *handle, static bool smb_time_audit_brl_cancel_windows(struct vfs_handle_struct *handle, struct byte_range_lock *br_lck, - struct lock_struct *plock, - struct blocking_lock_record *blr) + struct lock_struct *plock) { bool result; struct timespec ts1,ts2; double timediff; clock_gettime_mono(&ts1); - result = SMB_VFS_NEXT_BRL_CANCEL_WINDOWS(handle, br_lck, plock, blr); + result = SMB_VFS_NEXT_BRL_CANCEL_WINDOWS(handle, br_lck, plock); clock_gettime_mono(&ts2); timediff = nsec_time_diff(&ts2,&ts1)*1.0e-9; |