Lines Matching refs:vnode

109 static void	delmntque(struct vnode *vp);
113 static int vtryrecycle(struct vnode *vp, bool isvnlru);
114 static void v_init_counters(struct vnode *);
115 static void vn_seqc_init(struct vnode *);
116 static void vn_seqc_write_end_free(struct vnode *vp);
117 static void vgonel(struct vnode *);
118 static bool vhold_recycle_free(struct vnode *);
119 static void vdropl_recycle(struct vnode *vp);
120 static void vdrop_recycle(struct vnode *vp);
125 static int v_inval_buf_range_locked(struct vnode *vp, struct bufobj *bo,
129 static SYSCTL_NODE(_vfs, OID_AUTO, vnode, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
171 static TAILQ_HEAD(freelst, vnode) vnode_list;
172 static struct vnode *vnode_list_free_marker;
173 static struct vnode *vnode_list_reclaim_marker;
320 struct vnode *tab[VDBATCH_SIZE];
324 static void vdbatch_dequeue(struct vnode *vp);
434 struct vnode *vp; in sysctl_try_reclaim_vnode()
482 struct vnode *vp; in sysctl_ftry_reclaim_vnode()
520 _Static_assert(sizeof(struct vnode) >= 1UL << vnsz2log &&
521 sizeof(struct vnode) < 1UL << (vnsz2log + 1),
591 static struct vnode *
594 struct vnode *vp; in vn_alloc_marker()
596 vp = malloc(sizeof(struct vnode), M_VNODE_MARKER, M_WAITOK | M_ZERO); in vn_alloc_marker()
604 vn_free_marker(struct vnode *vp) in vn_free_marker()
624 _Static_assert(offsetof(struct vnode, v_vnodelist) < in vnode_dtor()
625 offsetof(struct vnode, v_dbatchcpu), in vnode_dtor()
628 off1 = offsetof(struct vnode, v_vnodelist); in vnode_dtor()
629 off2 = offsetof(struct vnode, v_dbatchcpu); in vnode_dtor()
630 end1 = off1 + sizeof(((struct vnode *)NULL)->v_vnodelist); in vnode_dtor()
631 end2 = off2 + sizeof(((struct vnode *)NULL)->v_dbatchcpu); in vnode_dtor()
665 struct vnode *vp; in vnode_init()
713 struct vnode *vp; in vnode_fini()
773 sizeof(struct vnode) + NC_SZ * ncsizefactor + NFS_NCLNODE_SZ)); in vntblinit()
803 vnode_zone = uma_zcreate("VNODE", sizeof(struct vnode), ctor, dtor, in vntblinit()
1243 struct vnode *vp, *mvp; in vlrureclaim()
1367 vnlru_free_impl(int count, struct vfsops *mnt_op, struct vnode *mvp, bool isvnlru) in vnlru_free_impl()
1369 struct vnode *vp; in vnlru_free_impl()
1499 vnlru_free_vfsops(int count, struct vfsops *mnt_op, struct vnode *mvp) in vnlru_free_vfsops()
1510 struct vnode *
1513 struct vnode *mvp; in vnlru_alloc_marker()
1523 vnlru_free_marker(struct vnode *mvp) in vnlru_free_marker()
1906 vtryrecycle(struct vnode *vp, bool isvnlru) in vtryrecycle()
1984 static struct vnode * __noinline
2038 static struct vnode *
2054 vn_free(struct vnode *vp) in vn_free()
2066 struct vnode **vpp) in getnewvnode()
2068 struct vnode *vp; in getnewvnode()
2177 freevnode(struct vnode *vp) in freevnode()
2241 delmntque(struct vnode *vp) in delmntque()
2264 insmntque1_int(struct vnode *vp, struct mount *mp, bool dtr) in insmntque1_int()
2320 insmntque(struct vnode *vp, struct mount *mp) in insmntque()
2326 insmntque1(struct vnode *vp, struct mount *mp) in insmntque1()
2423 vinvalbuf(struct vnode *vp, int flags, int slpflag, int slptimeo) in vinvalbuf()
2555 vtruncbuf(struct vnode *vp, off_t length, int blksize) in vtruncbuf()
2617 v_inval_buf_range(struct vnode *vp, daddr_t startlbn, daddr_t endlbn, in v_inval_buf_range()
2640 v_inval_buf_range_locked(struct vnode *vp, struct bufobj *bo, in v_inval_buf_range_locked()
2827 bgetvp(struct vnode *vp, struct buf *bp) in bgetvp()
2871 struct vnode *vp; in brelvp()
2950 struct vnode *vp; in sync_vnode()
3202 struct vnode *vp; in reassignbuf()
3281 v_init_counters(struct vnode *vp) in v_init_counters()
3303 vget_prep_smr(struct vnode *vp) in vget_prep_smr()
3321 vget_prep(struct vnode *vp) in vget_prep()
3335 vget_abort(struct vnode *vp, enum vgetstate vs) in vget_abort()
3351 vget(struct vnode *vp, int flags) in vget()
3360 vget_finish(struct vnode *vp, int flags, enum vgetstate vs) in vget_finish()
3385 vget_finish_ref(struct vnode *vp, enum vgetstate vs) in vget_finish_ref()
3414 vref(struct vnode *vp) in vref()
3424 vrefact(struct vnode *vp) in vrefact()
3434 vlazy(struct vnode *vp) in vlazy()
3458 vunlazy(struct vnode *vp) in vunlazy()
3487 vunlazy_gone(struct vnode *vp) in vunlazy_gone()
3507 vdefer_inactive(struct vnode *vp) in vdefer_inactive()
3533 vdefer_inactive_unlocked(struct vnode *vp) in vdefer_inactive_unlocked()
3563 vput_final(struct vnode *vp, enum vput_op func) in vput_final()
3679 vrele(struct vnode *vp) in vrele()
3693 vput(struct vnode *vp) in vput()
3710 vunref(struct vnode *vp) in vunref()
3721 vhold(struct vnode *vp) in vhold()
3734 vholdnz(struct vnode *vp) in vholdnz()
3767 vhold_smr(struct vnode *vp) in vhold_smr()
3806 vhold_recycle_free(struct vnode *vp) in vhold_recycle_free()
3833 struct vnode *vp; in vdbatch_process()
3887 vdbatch_enqueue(struct vnode *vp) in vdbatch_enqueue()
3924 vdbatch_dequeue(struct vnode *vp) in vdbatch_dequeue()
3964 vdropl_final(struct vnode *vp) in vdropl_final()
3991 vdrop(struct vnode *vp) in vdrop()
4003 vdropl_impl(struct vnode *vp, bool enqueue) in vdropl_impl()
4038 vdropl(struct vnode *vp) in vdropl()
4056 vdropl_recycle(struct vnode *vp) in vdropl_recycle()
4063 vdrop_recycle(struct vnode *vp) in vdrop_recycle()
4075 vinactivef(struct vnode *vp) in vinactivef()
4108 vinactive(struct vnode *vp) in vinactive()
4154 struct vnode *vp, *mvp, *rootvp = NULL; in vflush()
4269 vrecycle(struct vnode *vp) in vrecycle()
4283 vrecyclel(struct vnode *vp) in vrecyclel()
4303 vgone(struct vnode *vp) in vgone()
4314 vfs_notify_upper(struct vnode *vp, enum vfs_notify_upper_type event) in vfs_notify_upper()
4354 vgonel(struct vnode *vp) in vgonel()
4534 vn_printf(struct vnode *vp, const char *fmt, ...) in vn_printf()
4672 struct vnode *vp; in DB_SHOW_COMMAND_FLAGS()
4692 DB_SHOW_COMMAND(vnode, db_show_vnode) in DB_SHOW_COMMAND() argument
4694 struct vnode *vp; in DB_SHOW_COMMAND()
4698 vp = (struct vnode *)addr; in DB_SHOW_COMMAND()
4710 struct vnode *vp; in DB_SHOW_COMMAND()
5099 vfs_deferred_inactive(struct vnode *vp, int lkflags) in vfs_deferred_inactive()
5119 vfs_periodic_inactive_filter(struct vnode *vp, void *arg) in vfs_periodic_inactive_filter()
5128 struct vnode *vp, *mvp; in vfs_periodic_inactive()
5146 vfs_want_msync(struct vnode *vp) in vfs_want_msync()
5161 vfs_periodic_msync_inactive_filter(struct vnode *vp, void *arg __unused) in vfs_periodic_msync_inactive_filter()
5174 struct vnode *vp, *mvp; in vfs_periodic_msync_inactive()
5246 v_addpollinfo(struct vnode *vp) in v_addpollinfo()
5275 vn_pollrecord(struct vnode *vp, struct thread *td, int events) in vn_pollrecord()
5330 struct vnode *vp; in vfs_allocate_syncvnode()
5386 struct vnode *vp; in vfs_deallocate_syncvnode()
5403 struct vnode *syncvp = ap->a_vp; in sync_fsync()
5461 struct vnode *vp = ap->a_vp; in sync_reclaim()
5482 vn_need_pageq_flush(struct vnode *vp) in vn_need_pageq_flush()
5495 vn_isdisk_error(struct vnode *vp, int *errp) in vn_isdisk_error()
5518 vn_isdisk(struct vnode *vp) in vn_isdisk()
5699 extattr_check_cred(struct vnode *vp, int attrnamespace, struct ucred *cred, in extattr_check_cred()
5748 vfs_badlock(const char *msg, const char *str, struct vnode *vp) in vfs_badlock()
5764 assert_vi_locked(struct vnode *vp, const char *str) in assert_vi_locked()
5772 assert_vi_unlocked(struct vnode *vp, const char *str) in assert_vi_unlocked()
5780 assert_vop_locked(struct vnode *vp, const char *str) in assert_vop_locked()
5796 assert_vop_unlocked(struct vnode *vp, const char *str) in assert_vop_unlocked()
5811 assert_vop_elocked(struct vnode *vp, const char *str) in assert_vop_elocked()
5888 struct vnode *vp; in vop_fplookup_vexec_debugpost()
5913 vop_fsync_debugprepost(struct vnode *vp, const char *name) in vop_fsync_debugprepost()
6023 struct vnode *vp = a->a_vp; in vop_unlock_debugpre()
6050 struct vnode *dvp; in vop_create_pre()
6061 struct vnode *dvp; in vop_create_post()
6074 struct vnode *dvp; in vop_whiteout_pre()
6085 struct vnode *dvp; in vop_whiteout_post()
6096 struct vnode *vp; in vop_deleteextattr_pre()
6107 struct vnode *vp; in vop_deleteextattr_post()
6120 struct vnode *vp, *tdvp; in vop_link_pre()
6133 struct vnode *vp, *tdvp; in vop_link_post()
6150 struct vnode *dvp; in vop_mkdir_pre()
6161 struct vnode *dvp; in vop_mkdir_post()
6186 struct vnode *dvp; in vop_mknod_pre()
6197 struct vnode *dvp; in vop_mknod_post()
6210 struct vnode *vp; in vop_reclaim_post()
6223 struct vnode *dvp, *vp; in vop_remove_pre()
6237 struct vnode *dvp, *vp; in vop_remove_post()
6292 struct vnode *dvp, *vp; in vop_rmdir_pre()
6306 struct vnode *dvp, *vp; in vop_rmdir_post()
6324 struct vnode *vp; in vop_setattr_pre()
6335 struct vnode *vp; in vop_setattr_post()
6348 struct vnode *vp; in vop_setacl_pre()
6359 struct vnode *vp; in vop_setacl_post()
6370 struct vnode *vp; in vop_setextattr_pre()
6381 struct vnode *vp; in vop_setextattr_post()
6394 struct vnode *dvp; in vop_symlink_pre()
6405 struct vnode *dvp; in vop_symlink_post()
6590 struct vnode *vp = arg; in vfs_knllock()
6598 struct vnode *vp = arg; in vfs_knlunlock()
6607 struct vnode *vp = arg; in vfs_knl_assert_lock()
6619 struct vnode *vp = ap->a_vp; in vfs_kqfilter()
6658 struct vnode *vp = (struct vnode *)kn->kn_hook; in filt_vfsdetach()
6669 struct vnode *vp = (struct vnode *)kn->kn_hook; in filt_vfsread()
6698 struct vnode *vp = (struct vnode *)kn->kn_hook; in filt_vfswrite()
6717 struct vnode *vp = (struct vnode *)kn->kn_hook; in filt_vfsvnode()
6737 struct vnode *vp; in filt_vfsdump()
6850 vfs_cache_root_fallback(struct mount *mp, int flags, struct vnode **vpp) in vfs_cache_root_fallback()
6852 struct vnode *vp; in vfs_cache_root_fallback()
6910 vfs_cache_root(struct mount *mp, int flags, struct vnode **vpp) in vfs_cache_root()
6913 struct vnode *vp; in vfs_cache_root()
6934 struct vnode *
6937 struct vnode *vp; in vfs_cache_root_clear()
6951 vfs_cache_root_set(struct mount *mp, struct vnode *vp) in vfs_cache_root_set()
6966 struct vnode *
6967 __mnt_vnode_next_all(struct vnode **mvp, struct mount *mp) in __mnt_vnode_next_all()
6969 struct vnode *vp; in __mnt_vnode_next_all()
6998 struct vnode *
6999 __mnt_vnode_first_all(struct vnode **mvp, struct mount *mp) in __mnt_vnode_first_all()
7001 struct vnode *vp; in __mnt_vnode_first_all()
7031 __mnt_vnode_markerfree_all(struct vnode **mvp, struct mount *mp) in __mnt_vnode_markerfree_all()
7054 mnt_vnode_markerfree_lazy(struct vnode **mvp, struct mount *mp) in mnt_vnode_markerfree_lazy()
7076 mnt_vnode_next_lazy_relock(struct vnode *mvp, struct mount *mp, in mnt_vnode_next_lazy_relock()
7077 struct vnode *vp) in mnt_vnode_next_lazy_relock()
7119 static struct vnode *
7120 mnt_vnode_next_lazy(struct vnode **mvp, struct mount *mp, mnt_lazy_cb_t *cb, in mnt_vnode_next_lazy()
7123 struct vnode *vp; in mnt_vnode_next_lazy()
7181 struct vnode *
7182 __mnt_vnode_next_lazy(struct vnode **mvp, struct mount *mp, mnt_lazy_cb_t *cb, in __mnt_vnode_next_lazy()
7191 struct vnode *
7192 __mnt_vnode_first_lazy(struct vnode **mvp, struct mount *mp, mnt_lazy_cb_t *cb, in __mnt_vnode_first_lazy()
7195 struct vnode *vp; in __mnt_vnode_first_lazy()
7217 __mnt_vnode_markerfree_lazy(struct vnode **mvp, struct mount *mp) in __mnt_vnode_markerfree_lazy()
7230 vn_dir_check_exec(struct vnode *vp, struct componentname *cnp) in vn_dir_check_exec()
7246 vn_seqc_write_begin_locked(struct vnode *vp) in vn_seqc_write_begin_locked()
7258 vn_seqc_write_begin(struct vnode *vp) in vn_seqc_write_begin()
7267 vn_seqc_write_end_locked(struct vnode *vp) in vn_seqc_write_end_locked()
7278 vn_seqc_write_end(struct vnode *vp) in vn_seqc_write_end()
7293 vn_seqc_init(struct vnode *vp) in vn_seqc_init()
7301 vn_seqc_write_end_free(struct vnode *vp) in vn_seqc_write_end_free()
7309 vn_irflag_set_locked(struct vnode *vp, short toset) in vn_irflag_set_locked()
7322 vn_irflag_set(struct vnode *vp, short toset) in vn_irflag_set()
7331 vn_irflag_set_cond_locked(struct vnode *vp, short toset) in vn_irflag_set_cond_locked()
7341 vn_irflag_set_cond(struct vnode *vp, short toset) in vn_irflag_set_cond()
7350 vn_irflag_unset_locked(struct vnode *vp, short tounset) in vn_irflag_unset_locked()
7363 vn_irflag_unset(struct vnode *vp, short tounset) in vn_irflag_unset()
7372 vn_getsize_locked(struct vnode *vp, off_t *size, struct ucred *cred) in vn_getsize_locked()
7389 vn_getsize(struct vnode *vp, off_t *size, struct ucred *cred) in vn_getsize()
7401 vn_set_state_validate(struct vnode *vp, __enum_uint8(vstate) state) in vn_set_state_validate()