summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-06-12 12:14:59 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-22 15:16:51 +0200
commit770d9affd721f05c4729d26dbc674cac491fba7c (patch)
treee00a68f2b3e9a687958d00190782100b421a52cf
parent89b2eb1d06f543388fce9239bcd209fc367d0cad (diff)
downloadsamba-770d9affd721f05c4729d26dbc674cac491fba7c.tar.gz
samba-770d9affd721f05c4729d26dbc674cac491fba7c.tar.bz2
samba-770d9affd721f05c4729d26dbc674cac491fba7c.zip
s3: Remove reduce_windows_lock_ref_count, used only once
Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/locking/posix.c10
1 files 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.
****************************************************************************/