From fdd55885da4e3270c9bb5c4a682c1cd980a6040a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 12 Apr 2006 23:00:58 +0000 Subject: r15060: The brlock code gets called a lot. Ensure we keep the key around while we're using it - saves many calls to locking_key() (now deleted). Jeremy. (This used to be commit 2f8b527dcf4a36fbb933ce79c720c0425de76b4a) --- source3/include/smb.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source3/include/smb.h') diff --git a/source3/include/smb.h b/source3/include/smb.h index 9531ae2903..be994a9fdd 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -836,10 +836,18 @@ struct parm_struct { enum brl_type {READ_LOCK, WRITE_LOCK, PENDING_LOCK, UNLOCK_LOCK}; enum brl_flavour {WINDOWS_LOCK = 0, POSIX_LOCK = 1}; +/* The key used in the brlock database. */ + +struct lock_key { + SMB_DEV_T device; + SMB_INO_T inode; +}; + struct byte_range_lock { files_struct *fsp; unsigned int num_locks; BOOL modified; + struct lock_key key; void *lock_data; }; -- cgit