Lines Matching refs:mvp
1244 struct vnode *vp, *mvp; in vlrureclaim() local
1255 mvp = vnode_list_reclaim_marker; in vlrureclaim()
1257 vp = mvp; in vlrureclaim()
1303 TAILQ_REMOVE(&vnode_list, mvp, v_vnodelist); in vlrureclaim()
1304 TAILQ_INSERT_AFTER(&vnode_list, vp, mvp, v_vnodelist); in vlrureclaim()
1341 TAILQ_REMOVE(&vnode_list, mvp, v_vnodelist); in vlrureclaim()
1342 TAILQ_INSERT_AFTER(&vnode_list, vp, mvp, v_vnodelist); in vlrureclaim()
1349 TAILQ_REMOVE(&vnode_list, mvp, v_vnodelist); in vlrureclaim()
1350 TAILQ_INSERT_HEAD(&vnode_list, mvp, v_vnodelist); in vlrureclaim()
1368 vnlru_free_impl(int count, struct vfsops *mnt_op, struct vnode *mvp, bool isvnlru) in vnlru_free_impl() argument
1384 vp = mvp; in vnlru_free_impl()
1396 TAILQ_REMOVE(&vnode_list, mvp, v_vnodelist); in vnlru_free_impl()
1397 TAILQ_INSERT_HEAD(&vnode_list, mvp, v_vnodelist); in vnlru_free_impl()
1398 vp = mvp; in vnlru_free_impl()
1406 TAILQ_REMOVE(&vnode_list, mvp, v_vnodelist); in vnlru_free_impl()
1407 TAILQ_INSERT_TAIL(&vnode_list, mvp, v_vnodelist); in vnlru_free_impl()
1430 TAILQ_REMOVE(&vnode_list, mvp, v_vnodelist); in vnlru_free_impl()
1431 TAILQ_INSERT_AFTER(&vnode_list, vp, mvp, v_vnodelist); in vnlru_free_impl()
1460 vp = mvp; in vnlru_free_impl()
1500 vnlru_free_vfsops(int count, struct vfsops *mnt_op, struct vnode *mvp) in vnlru_free_vfsops() argument
1504 MPASS(mvp != NULL); in vnlru_free_vfsops()
1505 VNPASS(mvp->v_type == VMARKER, mvp); in vnlru_free_vfsops()
1507 vnlru_free_impl(count, mnt_op, mvp, true); in vnlru_free_vfsops()
1514 struct vnode *mvp; in vnlru_alloc_marker() local
1516 mvp = vn_alloc_marker(NULL); in vnlru_alloc_marker()
1518 TAILQ_INSERT_BEFORE(vnode_list_free_marker, mvp, v_vnodelist); in vnlru_alloc_marker()
1520 return (mvp); in vnlru_alloc_marker()
1524 vnlru_free_marker(struct vnode *mvp) in vnlru_free_marker() argument
1527 TAILQ_REMOVE(&vnode_list, mvp, v_vnodelist); in vnlru_free_marker()
1529 vn_free_marker(mvp); in vnlru_free_marker()
4155 struct vnode *vp, *mvp, *rootvp = NULL; in vflush() local
4176 MNT_VNODE_FOREACH_ALL(vp, mp, mvp) { in vflush()
4181 MNT_VNODE_FOREACH_ALL_ABORT(mp, mvp); in vflush()
4205 MNT_VNODE_FOREACH_ALL_ABORT(mp, mvp); in vflush()
5130 struct vnode *vp, *mvp; in vfs_periodic_inactive() local
5137 MNT_VNODE_FOREACH_LAZY(vp, mp, mvp, vfs_periodic_inactive_filter, NULL) { in vfs_periodic_inactive()
5176 struct vnode *vp, *mvp; in vfs_periodic_msync_inactive() local
5184 MNT_VNODE_FOREACH_LAZY(vp, mp, mvp, vfs_periodic_msync_inactive_filter, NULL) { in vfs_periodic_msync_inactive()
6969 __mnt_vnode_next_all(struct vnode **mvp, struct mount *mp) in __mnt_vnode_next_all() argument
6975 KASSERT((*mvp)->v_mount == mp, ("marker vnode mount list mismatch")); in __mnt_vnode_next_all()
6976 for (vp = TAILQ_NEXT(*mvp, v_nmntvnodes); vp != NULL; in __mnt_vnode_next_all()
6989 __mnt_vnode_markerfree_all(mvp, mp); in __mnt_vnode_next_all()
6994 TAILQ_REMOVE(&mp->mnt_nvnodelist, *mvp, v_nmntvnodes); in __mnt_vnode_next_all()
6995 TAILQ_INSERT_AFTER(&mp->mnt_nvnodelist, vp, *mvp, v_nmntvnodes); in __mnt_vnode_next_all()
7001 __mnt_vnode_first_all(struct vnode **mvp, struct mount *mp) in __mnt_vnode_first_all() argument
7005 *mvp = vn_alloc_marker(mp); in __mnt_vnode_first_all()
7023 vn_free_marker(*mvp); in __mnt_vnode_first_all()
7024 *mvp = NULL; in __mnt_vnode_first_all()
7027 TAILQ_INSERT_AFTER(&mp->mnt_nvnodelist, vp, *mvp, v_nmntvnodes); in __mnt_vnode_first_all()
7033 __mnt_vnode_markerfree_all(struct vnode **mvp, struct mount *mp) in __mnt_vnode_markerfree_all() argument
7036 if (*mvp == NULL) { in __mnt_vnode_markerfree_all()
7043 KASSERT((*mvp)->v_mount == mp, ("marker vnode mount list mismatch")); in __mnt_vnode_markerfree_all()
7044 TAILQ_REMOVE(&mp->mnt_nvnodelist, *mvp, v_nmntvnodes); in __mnt_vnode_markerfree_all()
7047 vn_free_marker(*mvp); in __mnt_vnode_markerfree_all()
7048 *mvp = NULL; in __mnt_vnode_markerfree_all()
7056 mnt_vnode_markerfree_lazy(struct vnode **mvp, struct mount *mp) in mnt_vnode_markerfree_lazy() argument
7059 KASSERT((*mvp)->v_mount == mp, ("marker vnode mount list mismatch")); in mnt_vnode_markerfree_lazy()
7064 vn_free_marker(*mvp); in mnt_vnode_markerfree_lazy()
7065 *mvp = NULL; in mnt_vnode_markerfree_lazy()
7078 mnt_vnode_next_lazy_relock(struct vnode *mvp, struct mount *mp, in mnt_vnode_next_lazy_relock() argument
7082 VNASSERT(mvp->v_mount == mp && mvp->v_type == VMARKER && in mnt_vnode_next_lazy_relock()
7083 TAILQ_NEXT(mvp, v_lazylist) != NULL, mvp, in mnt_vnode_next_lazy_relock()
7090 TAILQ_REMOVE(&mp->mnt_lazyvnodelist, mvp, v_lazylist); in mnt_vnode_next_lazy_relock()
7091 TAILQ_INSERT_BEFORE(vp, mvp, v_lazylist); in mnt_vnode_next_lazy_relock()
7122 mnt_vnode_next_lazy(struct vnode **mvp, struct mount *mp, mnt_lazy_cb_t *cb, in mnt_vnode_next_lazy() argument
7128 KASSERT((*mvp)->v_mount == mp, ("marker vnode mount list mismatch")); in mnt_vnode_next_lazy()
7130 vp = TAILQ_NEXT(*mvp, v_lazylist); in mnt_vnode_next_lazy()
7147 TAILQ_REMOVE(&mp->mnt_lazyvnodelist, *mvp, in mnt_vnode_next_lazy()
7149 TAILQ_INSERT_AFTER(&mp->mnt_lazyvnodelist, vp, *mvp, in mnt_vnode_next_lazy()
7160 !mnt_vnode_next_lazy_relock(*mvp, mp, vp)) in mnt_vnode_next_lazy()
7169 TAILQ_REMOVE(&mp->mnt_lazyvnodelist, *mvp, v_lazylist); in mnt_vnode_next_lazy()
7174 mnt_vnode_markerfree_lazy(mvp, mp); in mnt_vnode_next_lazy()
7177 TAILQ_INSERT_AFTER(&mp->mnt_lazyvnodelist, vp, *mvp, v_lazylist); in mnt_vnode_next_lazy()
7184 __mnt_vnode_next_lazy(struct vnode **mvp, struct mount *mp, mnt_lazy_cb_t *cb, in __mnt_vnode_next_lazy() argument
7190 return (mnt_vnode_next_lazy(mvp, mp, cb, cbarg)); in __mnt_vnode_next_lazy()
7194 __mnt_vnode_first_lazy(struct vnode **mvp, struct mount *mp, mnt_lazy_cb_t *cb, in __mnt_vnode_first_lazy() argument
7202 *mvp = vn_alloc_marker(mp); in __mnt_vnode_first_lazy()
7211 mnt_vnode_markerfree_lazy(mvp, mp); in __mnt_vnode_first_lazy()
7214 TAILQ_INSERT_BEFORE(vp, *mvp, v_lazylist); in __mnt_vnode_first_lazy()
7215 return (mnt_vnode_next_lazy(mvp, mp, cb, cbarg)); in __mnt_vnode_first_lazy()
7219 __mnt_vnode_markerfree_lazy(struct vnode **mvp, struct mount *mp) in __mnt_vnode_markerfree_lazy() argument
7222 if (*mvp == NULL) in __mnt_vnode_markerfree_lazy()
7226 TAILQ_REMOVE(&mp->mnt_lazyvnodelist, *mvp, v_lazylist); in __mnt_vnode_markerfree_lazy()
7228 mnt_vnode_markerfree_lazy(mvp, mp); in __mnt_vnode_markerfree_lazy()