From 770d9affd721f05c4729d26dbc674cac491fba7c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 12 Jun 2012 12:14:59 +0200 Subject: s3: Remove reduce_windows_lock_ref_count, used only once Signed-off-by: Stefan Metzmacher --- source3/locking/posix.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/source3/locking/posix.c b/source3/locking/posix.c index a548027d76..2d89110b7d 100644 --- a/source3/locking/posix.c +++ b/source3/locking/posix.c @@ -424,8 +424,7 @@ static void increment_windows_lock_ref_count(files_struct *fsp) Bulk delete - subtract as many locks as we've just deleted. ****************************************************************************/ -static void reduce_windows_lock_ref_count(files_struct *fsp, - unsigned int dcount) +static void decrement_windows_lock_ref_count(files_struct *fsp) { struct lock_ref_count_key tmp; int32_t lock_ref_count = 0; @@ -433,7 +432,7 @@ static void reduce_windows_lock_ref_count(files_struct *fsp, status = dbwrap_change_int32_atomic( posix_pending_close_db, locking_ref_count_key_fsp(fsp, &tmp), - &lock_ref_count, -dcount); + &lock_ref_count, -1); SMB_ASSERT(NT_STATUS_IS_OK(status)); SMB_ASSERT(lock_ref_count >= 0); @@ -442,11 +441,6 @@ static void reduce_windows_lock_ref_count(files_struct *fsp, fsp_str_dbg(fsp), (int)lock_ref_count)); } -static void decrement_windows_lock_ref_count(files_struct *fsp) -{ - reduce_windows_lock_ref_count(fsp, 1); -} - /**************************************************************************** Fetch the lock ref count. ****************************************************************************/ -- cgit