diff --git a/module/zfs/zfs_vfsops.c b/module/zfs/zfs_vfsops.c index a72841c15e6c..d7aa2cfc673d 100644 --- a/module/zfs/zfs_vfsops.c +++ b/module/zfs/zfs_vfsops.c @@ -1552,7 +1552,7 @@ zfs_vget(struct super_block *sb, struct inode **ipp, fid_t *fidp) fid_gen); iput(ZTOI(zp)); ZFS_EXIT(zsb); - return (SET_ERROR(EINVAL)); + return (SET_ERROR(ENOENT)); } *ipp = ZTOI(zp);