mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 11:47:43 +03:00
Linux does not HAVE_DNLC
Since Linux does not have the Directory Name Lookup Cache, we don't need the code to manage it. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tim Chase <tim@chase2k.com> Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com> Signed-off-by: Matthew Ahrens <mahrens@delphix.com> Closes #8031
This commit is contained in:
committed by
Brian Behlendorf
parent
bfcb82cb54
commit
5fbf85c4e2
@@ -1208,27 +1208,6 @@ zfs_lookup(struct inode *dip, char *nm, struct inode **ipp, int flags,
|
||||
return (0);
|
||||
}
|
||||
return (error);
|
||||
#ifdef HAVE_DNLC
|
||||
} else if (!zdp->z_zfsvfs->z_norm &&
|
||||
(zdp->z_zfsvfs->z_case == ZFS_CASE_SENSITIVE)) {
|
||||
|
||||
vnode_t *tvp = dnlc_lookup(dvp, nm);
|
||||
|
||||
if (tvp) {
|
||||
error = zfs_fastaccesschk_execute(zdp, cr);
|
||||
if (error) {
|
||||
iput(tvp);
|
||||
return (error);
|
||||
}
|
||||
if (tvp == DNLC_NO_VNODE) {
|
||||
iput(tvp);
|
||||
return (SET_ERROR(ENOENT));
|
||||
} else {
|
||||
*vpp = tvp;
|
||||
return (specvp_check(vpp, cr));
|
||||
}
|
||||
}
|
||||
#endif /* HAVE_DNLC */
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1765,13 +1744,6 @@ top:
|
||||
goto out;
|
||||
}
|
||||
|
||||
#ifdef HAVE_DNLC
|
||||
if (realnmp)
|
||||
dnlc_remove(dvp, realnmp->pn_buf);
|
||||
else
|
||||
dnlc_remove(dvp, name);
|
||||
#endif /* HAVE_DNLC */
|
||||
|
||||
mutex_enter(&zp->z_lock);
|
||||
may_delete_now = atomic_read(&ip->i_count) == 1 && !(zp->z_is_mapped);
|
||||
mutex_exit(&zp->z_lock);
|
||||
|
||||
Reference in New Issue
Block a user