mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
smbd: Remove unused blocking_lock_record* from VFS_BRL_LOCK_WINDOWS
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
e2233fbcee
commit
b08fe2d98d
examples/VFS
source3
@ -574,8 +574,7 @@ static const char *skel_connectpath(struct vfs_handle_struct *handle,
|
||||
static NTSTATUS skel_brl_lock_windows(struct vfs_handle_struct *handle,
|
||||
struct byte_range_lock *br_lck,
|
||||
struct lock_struct *plock,
|
||||
bool blocking_lock,
|
||||
struct blocking_lock_record *blr)
|
||||
bool blocking_lock)
|
||||
{
|
||||
return NT_STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
@ -694,11 +694,10 @@ static const char *skel_connectpath(struct vfs_handle_struct *handle,
|
||||
static NTSTATUS skel_brl_lock_windows(struct vfs_handle_struct *handle,
|
||||
struct byte_range_lock *br_lck,
|
||||
struct lock_struct *plock,
|
||||
bool blocking_lock,
|
||||
struct blocking_lock_record *blr)
|
||||
bool blocking_lock)
|
||||
{
|
||||
return SMB_VFS_NEXT_BRL_LOCK_WINDOWS(handle,
|
||||
br_lck, plock, blocking_lock, blr);
|
||||
br_lck, plock, blocking_lock);
|
||||
}
|
||||
|
||||
static bool skel_brl_unlock_windows(struct vfs_handle_struct *handle,
|
||||
|
@ -656,8 +656,7 @@ struct vfs_fn_pointers {
|
||||
NTSTATUS (*brl_lock_windows_fn)(struct vfs_handle_struct *handle,
|
||||
struct byte_range_lock *br_lck,
|
||||
struct lock_struct *plock,
|
||||
bool blocking_lock,
|
||||
struct blocking_lock_record *blr);
|
||||
bool blocking_lock);
|
||||
|
||||
bool (*brl_unlock_windows_fn)(struct vfs_handle_struct *handle,
|
||||
struct messaging_context *msg_ctx,
|
||||
@ -1077,8 +1076,7 @@ const char *smb_vfs_call_connectpath(struct vfs_handle_struct *handle,
|
||||
NTSTATUS smb_vfs_call_brl_lock_windows(struct vfs_handle_struct *handle,
|
||||
struct byte_range_lock *br_lck,
|
||||
struct lock_struct *plock,
|
||||
bool blocking_lock,
|
||||
struct blocking_lock_record *blr);
|
||||
bool blocking_lock);
|
||||
bool smb_vfs_call_brl_unlock_windows(struct vfs_handle_struct *handle,
|
||||
struct messaging_context *msg_ctx,
|
||||
struct byte_range_lock *br_lck,
|
||||
|
@ -364,10 +364,10 @@
|
||||
#define SMB_VFS_NEXT_CONNECTPATH(conn, fname) \
|
||||
smb_vfs_call_connectpath((conn)->next, (fname))
|
||||
|
||||
#define SMB_VFS_BRL_LOCK_WINDOWS(conn, br_lck, plock, blocking_lock, blr) \
|
||||
smb_vfs_call_brl_lock_windows((conn)->vfs_handles, (br_lck), (plock), (blocking_lock), (blr))
|
||||
#define SMB_VFS_NEXT_BRL_LOCK_WINDOWS(handle, br_lck, plock, blocking_lock, blr) \
|
||||
smb_vfs_call_brl_lock_windows((handle)->next, (br_lck), (plock), (blocking_lock), (blr))
|
||||
#define SMB_VFS_BRL_LOCK_WINDOWS(conn, br_lck, plock, blocking_lock) \
|
||||
smb_vfs_call_brl_lock_windows((conn)->vfs_handles, (br_lck), (plock), (blocking_lock))
|
||||
#define SMB_VFS_NEXT_BRL_LOCK_WINDOWS(handle, br_lck, plock, blocking_lock) \
|
||||
smb_vfs_call_brl_lock_windows((handle)->next, (br_lck), (plock), (blocking_lock))
|
||||
|
||||
#define SMB_VFS_BRL_UNLOCK_WINDOWS(conn, msg_ctx, br_lck, plock) \
|
||||
smb_vfs_call_brl_unlock_windows((conn)->vfs_handles, (msg_ctx), (br_lck), (plock))
|
||||
|
@ -933,12 +933,11 @@ static NTSTATUS brl_lock_posix(struct messaging_context *msg_ctx,
|
||||
NTSTATUS smb_vfs_call_brl_lock_windows(struct vfs_handle_struct *handle,
|
||||
struct byte_range_lock *br_lck,
|
||||
struct lock_struct *plock,
|
||||
bool blocking_lock,
|
||||
struct blocking_lock_record *blr)
|
||||
bool blocking_lock)
|
||||
{
|
||||
VFS_FIND(brl_lock_windows);
|
||||
return handle->fns->brl_lock_windows_fn(handle, br_lck, plock,
|
||||
blocking_lock, blr);
|
||||
blocking_lock);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
@ -982,7 +981,7 @@ NTSTATUS brl_lock(struct messaging_context *msg_ctx,
|
||||
|
||||
if (lock_flav == WINDOWS_LOCK) {
|
||||
ret = SMB_VFS_BRL_LOCK_WINDOWS(br_lck->fsp->conn, br_lck,
|
||||
&lock, blocking_lock, blr);
|
||||
&lock, blocking_lock);
|
||||
} else {
|
||||
ret = brl_lock_posix(msg_ctx, br_lck, &lock);
|
||||
}
|
||||
|
@ -2205,8 +2205,7 @@ static const char *vfswrap_connectpath(struct vfs_handle_struct *handle,
|
||||
static NTSTATUS vfswrap_brl_lock_windows(struct vfs_handle_struct *handle,
|
||||
struct byte_range_lock *br_lck,
|
||||
struct lock_struct *plock,
|
||||
bool blocking_lock,
|
||||
struct blocking_lock_record *blr)
|
||||
bool blocking_lock)
|
||||
{
|
||||
SMB_ASSERT(plock->lock_flav == WINDOWS_LOCK);
|
||||
|
||||
|
@ -1650,13 +1650,12 @@ static const char *smb_full_audit_connectpath(vfs_handle_struct *handle,
|
||||
static NTSTATUS smb_full_audit_brl_lock_windows(struct vfs_handle_struct *handle,
|
||||
struct byte_range_lock *br_lck,
|
||||
struct lock_struct *plock,
|
||||
bool blocking_lock,
|
||||
struct blocking_lock_record *blr)
|
||||
bool blocking_lock)
|
||||
{
|
||||
NTSTATUS result;
|
||||
|
||||
result = SMB_VFS_NEXT_BRL_LOCK_WINDOWS(handle, br_lck, plock,
|
||||
blocking_lock, blr);
|
||||
blocking_lock);
|
||||
|
||||
do_log(SMB_VFS_OP_BRL_LOCK_WINDOWS, NT_STATUS_IS_OK(result), handle,
|
||||
"%s:%llu-%llu. type=%d. blocking=%d",
|
||||
|
@ -1543,8 +1543,7 @@ static const char *smb_time_audit_connectpath(vfs_handle_struct *handle,
|
||||
static NTSTATUS smb_time_audit_brl_lock_windows(struct vfs_handle_struct *handle,
|
||||
struct byte_range_lock *br_lck,
|
||||
struct lock_struct *plock,
|
||||
bool blocking_lock,
|
||||
struct blocking_lock_record *blr)
|
||||
bool blocking_lock)
|
||||
{
|
||||
NTSTATUS result;
|
||||
struct timespec ts1,ts2;
|
||||
@ -1552,7 +1551,7 @@ static NTSTATUS smb_time_audit_brl_lock_windows(struct vfs_handle_struct *handle
|
||||
|
||||
clock_gettime_mono(&ts1);
|
||||
result = SMB_VFS_NEXT_BRL_LOCK_WINDOWS(handle, br_lck, plock,
|
||||
blocking_lock, blr);
|
||||
blocking_lock);
|
||||
clock_gettime_mono(&ts2);
|
||||
timediff = nsec_time_diff(&ts2,&ts1)*1.0e-9;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user