s3: VFS: vfs_glusterfs. Remove link_fn(). No longer used.
authorJeremy Allison <jra@samba.org>
Fri, 16 Aug 2019 23:24:38 +0000 (16:24 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 20 Aug 2019 21:09:29 +0000 (21:09 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
source3/modules/vfs_glusterfs.c

index 0ecb35bcda5b1da82b2bf4a3ad132b7fcb228921..09299bc70c55e9cb52b0193bfd6c4d69f9198d2a 100644 (file)
@@ -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,