diff options
author | Christof Schmitt <cs@samba.org> | 2020-01-16 13:45:54 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2020-01-21 22:08:41 +0000 |
commit | 6a19404e98ed1ed234c6948e78d1b1304c48a45d (patch) | |
tree | ed3f7cca6f9653855fe622fc768b0d93a719a526 /source3/smbd | |
parent | fed2c3edc5285d712e5c060a8fc0f05fc19ae6bb (diff) | |
download | samba-6a19404e98ed1ed234c6948e78d1b1304c48a45d.tar.gz |
smbd: Remove unused function linux_set_lease_capability
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>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/oplock_linux.c | 8 | ||||
-rw-r--r-- | source3/smbd/proto.h | 1 |
2 files changed, 0 insertions, 9 deletions
diff --git a/source3/smbd/oplock_linux.c b/source3/smbd/oplock_linux.c index 7549d492ce0..08829582fc6 100644 --- a/source3/smbd/oplock_linux.c +++ b/source3/smbd/oplock_linux.c @@ -45,14 +45,6 @@ #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 */ diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index de4a53c6187..d325f7d56e0 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -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); |