diff options
author | Volker Lendecke <vl@samba.org> | 2013-09-11 11:53:26 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-10-06 20:24:29 +0200 |
commit | 8c435cd588bd15f444eb4d2fcd687eee02204c88 (patch) | |
tree | 624723d3ccf16f68fa04b69161214c64ffb4a5b0 /source3/locking | |
parent | 440e331949fe8da5c09ce9ef6cf79f6e8656abe2 (diff) | |
download | samba-8c435cd588bd15f444eb4d2fcd687eee02204c88.tar.gz samba-8c435cd588bd15f444eb4d2fcd687eee02204c88.tar.bz2 samba-8c435cd588bd15f444eb4d2fcd687eee02204c88.zip |
smbd: Remove the brl_get_locks wrapper
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/brlock.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c index f57c7e5a15..78315bc7f9 100644 --- a/source3/locking/brlock.c +++ b/source3/locking/brlock.c @@ -1929,8 +1929,7 @@ static int byte_range_lock_destructor(struct byte_range_lock *br_lck) TALLOC_FREE(brl) will release the lock in the destructor. ********************************************************************/ -static struct byte_range_lock *brl_get_locks_internal(TALLOC_CTX *mem_ctx, - files_struct *fsp) +struct byte_range_lock *brl_get_locks(TALLOC_CTX *mem_ctx, files_struct *fsp) { TDB_DATA key, data; struct byte_range_lock *br_lck = talloc(mem_ctx, struct byte_range_lock); @@ -2026,12 +2025,6 @@ static struct byte_range_lock *brl_get_locks_internal(TALLOC_CTX *mem_ctx, return br_lck; } -struct byte_range_lock *brl_get_locks(TALLOC_CTX *mem_ctx, - files_struct *fsp) -{ - return brl_get_locks_internal(mem_ctx, fsp); -} - struct brl_get_locks_readonly_state { TALLOC_CTX *mem_ctx; struct byte_range_lock **br_lock; @@ -2076,7 +2069,7 @@ struct byte_range_lock *brl_get_locks_readonly(files_struct *fsp) * Fetch the record in R/W mode to give validate_lock_entries * a chance to kick in once. */ - rw = brl_get_locks_internal(talloc_tos(), fsp); + rw = brl_get_locks(talloc_tos(), fsp); if (rw == NULL) { return NULL; } |