]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove unused "blocking_lock" from brl_lock_windows_default()
authorVolker Lendecke <vl@samba.org>
Mon, 1 Jul 2019 12:58:35 +0000 (14:58 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 2 Jul 2019 17:01:27 +0000 (17:01 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/brlock.c
source3/locking/proto.h
source3/modules/vfs_default.c

index f3ef909563972a8f18076e11eafa02e02a92db6d..ed15177080e67a373c38fc598e3849d436b1259e 100644 (file)
@@ -346,7 +346,7 @@ static int lock_compare(const struct lock_struct *lck1,
 ****************************************************************************/
 
 NTSTATUS brl_lock_windows_default(struct byte_range_lock *br_lck,
-    struct lock_struct *plock, bool blocking_lock)
+                                 struct lock_struct *plock)
 {
        unsigned int i;
        files_struct *fsp = br_lck->fsp;
index 8ea4f9fa3940bbe4f9cd2b9923f31ed2385d696e..7bb21cffc230c14b7641bd7743f141b3e3d0a354 100644 (file)
@@ -35,8 +35,7 @@ void brl_set_num_read_oplocks(struct byte_range_lock *brl,
                              uint32_t num_read_oplocks);
 
 NTSTATUS brl_lock_windows_default(struct byte_range_lock *br_lck,
-               struct lock_struct *plock,
-               bool blocking_lock);
+                                 struct lock_struct *plock);
 
 NTSTATUS brl_lock(struct messaging_context *msg_ctx,
                struct byte_range_lock *br_lck,
index 13bfe45527099c6613658cc87baa4563cd4a3545..9359aa48607d3b422f499ca238b56aff6c8800f9 100644 (file)
@@ -2840,7 +2840,7 @@ static NTSTATUS vfswrap_brl_lock_windows(struct vfs_handle_struct *handle,
        SMB_ASSERT(plock->lock_flav == WINDOWS_LOCK);
 
        /* Note: blr is not used in the default implementation. */
-       return brl_lock_windows_default(br_lck, plock, false);
+       return brl_lock_windows_default(br_lck, plock);
 }
 
 static bool vfswrap_brl_unlock_windows(struct vfs_handle_struct *handle,