summaryrefslogtreecommitdiffstats
path: root/module/zfs/zpl_export.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/zfs/zpl_export.c')
-rw-r--r--module/zfs/zpl_export.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/module/zfs/zpl_export.c b/module/zfs/zpl_export.c
index a38955600..4fe998437 100644
--- a/module/zfs/zpl_export.c
+++ b/module/zfs/zpl_export.c
@@ -73,8 +73,6 @@ static struct dentry *
zpl_fh_to_dentry(struct super_block *sb, struct fid *fh,
int fh_len, int fh_type)
{
- zfs_sb_t *zsb = sb->s_fs_info;
- struct vfsmount *vfs = zsb->z_vfs;
fid_t *fid = (fid_t *)fh;
struct inode *ip;
int len_bytes, rc;
@@ -86,7 +84,7 @@ zpl_fh_to_dentry(struct super_block *sb, struct fid *fh,
len_bytes < offsetof(fid_t, fid_data) + fid->fid_len)
return ERR_PTR(-EINVAL);
- rc = zfs_vget(vfs, &ip, fid);
+ rc = zfs_vget(sb, &ip, fid);
if (rc != 0)
return ERR_PTR(-rc);