Lines Matching defs:mp
221 fstrans_mount_hash(struct mount *mp)
224 return hash32_buf(&mp, sizeof(mp), HASH32_BUF_INIT) &
232 fstrans_mount_get(struct mount *mp)
239 indx = fstrans_mount_hash(mp);
241 if (fmi->fmi_mount == mp) {
242 if (__predict_false(mp->mnt_lower != NULL &&
250 fmi_lower = fstrans_mount_get(mp->mnt_lower);
300 fstrans_mount(struct mount *mp)
305 indx = fstrans_mount_hash(mp);
313 newfmi->fmi_mount = mp;
328 fstrans_unmount(struct mount *mp)
333 indx = fstrans_mount_hash(mp);
336 fmi = fstrans_mount_get(mp);
400 fstrans_alloc_lwp_info(struct mount *mp)
406 if (fli->fli_mount == mp)
414 fmi = fstrans_mount_get(mp);
453 fli->fli_mount = mp;
472 fstrans_get_lwp_info(struct mount *mp, bool do_alloc)
480 if (fli->fli_mount == mp) {
481 KASSERT(mp->mnt_lower == NULL ||
491 fli = fstrans_alloc_lwp_info(mp);
520 _fstrans_start(struct mount *mp, enum fstrans_lock_type lock_type, int wait)
528 fli = fstrans_get_lwp_info(mp, true);
563 fstrans_start(struct mount *mp)
567 error = _fstrans_start(mp, FSTRANS_SHARED, 1);
572 fstrans_start_nowait(struct mount *mp)
575 return _fstrans_start(mp, FSTRANS_SHARED, 0);
579 fstrans_start_lazy(struct mount *mp)
583 error = _fstrans_start(mp, FSTRANS_LAZY, 1);
591 fstrans_done(struct mount *mp)
597 fli = fstrans_get_lwp_info(mp, false);
631 fstrans_held(struct mount *mp)
636 KASSERT(mp != dead_rootmount);
638 fli = fstrans_get_lwp_info(mp, false);
650 fstrans_is_owner(struct mount *mp)
655 KASSERT(mp != dead_rootmount);
657 fli = fstrans_get_lwp_info(mp, false);
695 fstrans_setstate(struct mount *mp, enum fstrans_state new_state)
702 KASSERT(mp != dead_rootmount);
704 fli = fstrans_get_lwp_info(mp, true);
748 fstrans_getstate(struct mount *mp)
753 KASSERT(mp != dead_rootmount);
755 fli = fstrans_get_lwp_info(mp, true);
766 vfs_suspend(struct mount *mp, int nowait)
771 if (mp == dead_rootmount)
774 fli = fstrans_get_lwp_info(mp, true);
789 if ((mp->mnt_iflag & IMNT_GONE) != 0) {
790 vfs_resume(mp);
801 vfs_resume(struct mount *mp)
805 KASSERT(mp != dead_rootmount);
807 fli = fstrans_get_lwp_info(mp, false);
808 mp = fli->fli_mount;
810 VFS_SUSPENDCTL(mp, SUSPEND_RESUME);
884 fscow_establish(struct mount *mp, int (*func)(void *, struct buf *, bool),
890 KASSERT(mp != dead_rootmount);
893 fmi = fstrans_mount_get(mp);
913 fscow_disestablish(struct mount *mp, int (*func)(void *, struct buf *, bool),
919 KASSERT(mp != dead_rootmount);
922 fmi = fstrans_mount_get(mp);
947 struct mount *mp;
962 mp = spec_node_getmountedfs(bp->b_vp);
964 mp = bp->b_vp->v_mount;
965 if (mp == NULL || mp == dead_rootmount) {
970 fli = fstrans_get_lwp_info(mp, true);
1087 fstrans_print_mount(struct mount *mp, int verbose)
1092 indx = fstrans_mount_hash(mp);
1094 if (fmi->fmi_mount == mp)
1100 printf("%-16s ", mp->mnt_stat.f_mntonname);
1128 struct mount *mp;
1137 for (mp = _mountlist_next(NULL); mp; mp = _mountlist_next(mp))
1138 fstrans_print_mount(mp, full == 1);