diff options
author | Volker Lendecke <vl@samba.org> | 2014-07-11 15:35:45 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-07-22 15:32:39 +0200 |
commit | 188017ea324e7c6b7aba7f51a9baa490c0690a01 (patch) | |
tree | 068036abed382d3289b66577053541f014b7d99a /source3/locking/proto.h | |
parent | 50b74ccb6ae37f193f1f109a04a9a15ed48dfae5 (diff) | |
download | samba-188017ea324e7c6b7aba7f51a9baa490c0690a01.tar.gz samba-188017ea324e7c6b7aba7f51a9baa490c0690a01.tar.xz samba-188017ea324e7c6b7aba7f51a9baa490c0690a01.zip |
smbd: Simplify brl_locktest
Pass "struct lock_struct" as a parameter. This had to be destructured
before the call and re-constructed inside brl_locktest.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/locking/proto.h')
-rw-r--r-- | source3/locking/proto.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source3/locking/proto.h b/source3/locking/proto.h index 3db9e7aa58..722779f3ce 100644 --- a/source3/locking/proto.h +++ b/source3/locking/proto.h @@ -58,13 +58,8 @@ bool brl_unlock(struct messaging_context *msg_ctx, bool brl_unlock_windows_default(struct messaging_context *msg_ctx, struct byte_range_lock *br_lck, const struct lock_struct *plock); -bool brl_locktest(struct byte_range_lock *br_lck, - uint64_t smblctx, - struct server_id pid, - br_off start, - br_off size, - enum brl_type lock_type, - enum brl_flavour lock_flav); +bool brl_locktest(const struct byte_range_lock *br_lck, + const struct lock_struct *rw_probe); NTSTATUS brl_lockquery(struct byte_range_lock *br_lck, uint64_t *psmblctx, struct server_id pid, |