From: Ralph Boehme Date: Wed, 29 Jan 2025 05:13:29 +0000 (+0100) Subject: s3/locking: add brl_set_modified() X-Git-Tag: samba-4.22.1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b99bfb08404ab3e69bdcb73510f7c1351c20c5a;p=thirdparty%2Fsamba.git s3/locking: add brl_set_modified() BUG: https://bugzilla.samba.org/show_bug.cgi?id=15767 Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher (cherry picked from commit 2772f147c9b13cd2160181c4f7905b54ab765054) --- diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c index fcbce52f9c1..0e58339b108 100644 --- a/source3/locking/brlock.c +++ b/source3/locking/brlock.c @@ -2030,3 +2030,8 @@ NTSTATUS share_mode_do_locked_brl(files_struct *fsp, TALLOC_FREE(frame); return NT_STATUS_OK; } + +void brl_set_modified(struct byte_range_lock *br_lck, bool modified) +{ + br_lck->modified = modified; +} diff --git a/source3/locking/proto.h b/source3/locking/proto.h index 0b22093b918..8285aa9f137 100644 --- a/source3/locking/proto.h +++ b/source3/locking/proto.h @@ -99,6 +99,7 @@ struct byte_range_lock *brl_get_locks(TALLOC_CTX *mem_ctx, files_struct *fsp); struct byte_range_lock *brl_get_locks_readonly(files_struct *fsp); bool brl_cleanup_disconnected(struct file_id fid, uint64_t open_persistent_id); +void brl_set_modified(struct byte_range_lock *br_lck, bool modified); /* The following definitions come from locking/locking.c */