Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/vfs_cache.c
Show First 20 Lines • Show All 1,958 Lines • ▼ Show 20 Lines | for (i = 0; i <= old_nchash; i++) { | ||||
} | } | ||||
} | } | ||||
cache_unlock_all_buckets(); | cache_unlock_all_buckets(); | ||||
cache_unlock_all_vnodes(); | cache_unlock_all_vnodes(); | ||||
free(old_nchashtbl, M_VFSCACHE); | free(old_nchashtbl, M_VFSCACHE); | ||||
} | } | ||||
/* | /* | ||||
* Invalidate all entries to a particular vnode. | * Invalidate all entries from and to a particular vnode. | ||||
*/ | */ | ||||
void | void | ||||
cache_purge(struct vnode *vp) | cache_purge(struct vnode *vp) | ||||
{ | { | ||||
TAILQ_HEAD(, namecache) ncps; | TAILQ_HEAD(, namecache) ncps; | ||||
struct namecache *ncp, *nnp; | struct namecache *ncp, *nnp; | ||||
struct mtx *vlp, *vlp2; | struct mtx *vlp, *vlp2; | ||||
▲ Show 20 Lines • Show All 618 Lines • Show Last 20 Lines |