From: Jeremy Allison Date: Fri, 16 Aug 2019 23:24:38 +0000 (-0700) Subject: s3: VFS: vfs_glusterfs. Remove link_fn(). No longer used. X-Git-Tag: tevent-0.10.1~292 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=751852ced401fa1b3a6fe6c30bc89a23c342def0;p=thirdparty%2Fsamba.git s3: VFS: vfs_glusterfs. Remove link_fn(). No longer used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index 0ecb35bcda5..09299bc70c5 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -1661,21 +1661,6 @@ static int vfs_gluster_readlink(struct vfs_handle_struct *handle, return ret; } -static int vfs_gluster_link(struct vfs_handle_struct *handle, - const struct smb_filename *old_smb_fname, - const struct smb_filename *new_smb_fname) -{ - int ret; - - START_PROFILE(syscall_link); - ret = glfs_link(handle->data, - old_smb_fname->base_name, - new_smb_fname->base_name); - END_PROFILE(syscall_link); - - return ret; -} - static int vfs_gluster_linkat(struct vfs_handle_struct *handle, files_struct *srcfsp, const struct smb_filename *old_smb_fname, @@ -1919,7 +1904,6 @@ static struct vfs_fn_pointers glusterfs_fns = { .getlock_fn = vfs_gluster_getlock, .symlink_fn = vfs_gluster_symlink, .readlink_fn = vfs_gluster_readlink, - .link_fn = vfs_gluster_link, .linkat_fn = vfs_gluster_linkat, .mknod_fn = vfs_gluster_mknod, .realpath_fn = vfs_gluster_realpath,