summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-01-27 23:30:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:06:17 -0500
commitbd34c2ac25af690a00cbbded5b57a834a4e35875 (patch)
treea9262c45e1d36d6ebf25505af596f50d8f92a595 /source3/locking
parent0f46bfdce61a438c61fba922bad1e5c910d88a10 (diff)
downloadsamba-bd34c2ac25af690a00cbbded5b57a834a4e35875.tar.gz
samba-bd34c2ac25af690a00cbbded5b57a834a4e35875.tar.bz2
samba-bd34c2ac25af690a00cbbded5b57a834a4e35875.zip
r13198: Fix issues exposed by Jerry's testing on 64-bit Solaris
(I hope). Separate 3.0.21b patch sent to Jerry. Jeremy. (This used to be commit 837e7ea7e40cedc6b01e023445feb4a90c4bf8b9)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index be1e83121b..e31ead30e4 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -988,28 +988,6 @@ BOOL downgrade_share_oplock(struct share_mode_lock *lck, files_struct *fsp)
return True;
}
-
-/*******************************************************************
- We've just told all the smbd's that our level2 or fake level2 has been
- written to.
-********************************************************************/
-BOOL remove_all_share_oplocks(struct share_mode_lock *lck, files_struct *fsp)
-{
- int i;
- for (i=0; i<lck->num_share_modes; i++) {
- struct share_mode_entry *e = &lck->share_modes[i];
- if (!is_valid_share_mode_entry(e)) {
- continue;
- }
- if (e->op_type == NO_OPLOCK) {
- continue;
- }
- e->op_type = NO_OPLOCK;
- lck->modified = True;
- }
- return True;
-}
-
/****************************************************************************
Deal with the internal needs of setting the delete on close flag. Note that
as the tdb locking is recursive, it is safe to call this from within