Skip to content

Commit

Permalink
FreeBSD: g/c unused vop vector zfsctl_ops_shares_dir
Browse files Browse the repository at this point in the history
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Matt Macy <[email protected]>
Signed-off-by: Mateusz Guzik <[email protected]>
Closes openzfs#11066
  • Loading branch information
mjguzik authored and behlendorf committed Oct 15, 2020
1 parent dff71c7 commit 34cda44
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions module/os/freebsd/zfs/zfs_ctldir.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ sfs_readdir_common(uint64_t parent_id, uint64_t id, struct vop_readdir_args *ap,
static struct vop_vector zfsctl_ops_root;
static struct vop_vector zfsctl_ops_snapdir;
static struct vop_vector zfsctl_ops_snapshot;
static struct vop_vector zfsctl_ops_shares_dir;

void
zfsctl_init(void)
Expand All @@ -331,8 +330,7 @@ zfsctl_is_node(vnode_t *vp)
{
return (vn_matchops(vp, zfsctl_ops_root) ||
vn_matchops(vp, zfsctl_ops_snapdir) ||
vn_matchops(vp, zfsctl_ops_snapshot) ||
vn_matchops(vp, zfsctl_ops_shares_dir));
vn_matchops(vp, zfsctl_ops_snapshot));

}

Expand Down

0 comments on commit 34cda44

Please sign in to comment.