]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/brlock: add brl_req_set()
authorStefan Metzmacher <metze@samba.org>
Mon, 6 Jan 2025 16:07:11 +0000 (17:07 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 2 Apr 2025 18:05:48 +0000 (18:05 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15767

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/locking/brlock.c
source3/locking/proto.h

index 47103d9b8a0d510abbad4c8be351b8b9078bee98..1b864cd5e508b5889308c362065623a7e3eb1aaa 100644 (file)
@@ -84,6 +84,15 @@ struct files_struct *brl_fsp(struct byte_range_lock *brl)
        return brl->fsp;
 }
 
+
+void brl_req_set(struct byte_range_lock *br_lck,
+                TALLOC_CTX *req_mem_ctx,
+                const struct GUID *req_guid)
+{
+       br_lck->req_mem_ctx = req_mem_ctx;
+       br_lck->req_guid = req_guid;
+}
+
 TALLOC_CTX *brl_req_mem_ctx(const struct byte_range_lock *brl)
 {
        if (brl->req_mem_ctx == NULL) {
index 524d1d6d145aa9a04411cc224b0eea9c8876c90b..14744fec81402b0a3456e7528810450b76984648 100644 (file)
@@ -32,6 +32,9 @@ void brl_shutdown(void);
 
 unsigned int brl_num_locks(const struct byte_range_lock *brl);
 struct files_struct *brl_fsp(struct byte_range_lock *brl);
+void brl_req_set(struct byte_range_lock *br_lck,
+                TALLOC_CTX *req_mem_ctx,
+                const struct GUID *req_guid);
 TALLOC_CTX *brl_req_mem_ctx(const struct byte_range_lock *brl);
 const struct GUID *brl_req_guid(const struct byte_range_lock *brl);