s3: Remove reduce_windows_lock_ref_count, used only once
authorVolker Lendecke <vl@samba.org>
Tue, 12 Jun 2012 10:14:59 +0000 (12:14 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 22 Jun 2012 13:16:51 +0000 (15:16 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/locking/posix.c

index a548027d7682ab6754772511cdf2dc777734655e..2d89110b7d343e374c4bbecb9d1b3f267d4f74a5 100644 (file)
@@ -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.
 ****************************************************************************/