smbd: Remove unused function linux_set_lease_capability
authorChristof Schmitt <cs@samba.org>
Thu, 16 Jan 2020 20:45:54 +0000 (13:45 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 21 Jan 2020 22:08:41 +0000 (22:08 +0000)
This function is no longer used. In case this capability would be
required, set_effective_capability(LEASE_CAPABILITY) could also be
called directly.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/oplock_linux.c
source3/smbd/proto.h

index 7549d492ce088600af36b4464569f3b81c1869a3..08829582fc641ff7e16b0ff988b57f6184f3da0b 100644 (file)
 #define F_SETSIG 10
 #endif
 
-/*
- * public function to get linux lease capability. Needed by some VFS modules (eg. gpfs.c)
- */
-void linux_set_lease_capability(void)
-{
-       set_effective_capability(LEASE_CAPABILITY);
-}
-
 /* 
  * Call to set the kernel lease signal handler
  */
index de4a53c6187003181cacf5eb1fa8b9e4d582cef0..d325f7d56e09cdcf4968ab4a160881b9213c44d6 100644 (file)
@@ -757,7 +757,6 @@ void init_kernel_oplocks(struct smbd_server_connection *sconn);
 
 /* The following definitions come from smbd/oplock_linux.c  */
 
-void linux_set_lease_capability(void);
 int linux_set_lease_sighandler(int fd);
 int linux_setlease(int fd, int leasetype);
 struct kernel_oplocks *linux_init_kernel_oplocks(struct smbd_server_connection *sconn);