Lines Matching refs:mi

700 	mntinfo4_t	*mi = VTOMI4(vp);  in nfs4_trigger_mounted_already()  local
714 mutex_enter(&mi->mi_lock); in nfs4_trigger_mounted_already()
715 if (mi->mi_ephemeral) in nfs4_trigger_mounted_already()
716 mi->mi_ephemeral->ne_ref_time = in nfs4_trigger_mounted_already()
718 mutex_exit(&mi->mi_lock); in nfs4_trigger_mounted_already()
746 mntinfo4_t *mi = VTOMI4(vp); in nfs4_trigger_mount() local
776 mutex_enter(&mi->mi_lock); in nfs4_trigger_mount()
781 if (mi->mi_ephemeral_tree == NULL) { in nfs4_trigger_mount()
804 mi->mi_ephemeral_tree = net; in nfs4_trigger_mount()
805 net->net_mount = mi; in nfs4_trigger_mount()
806 mutex_exit(&mi->mi_lock); in nfs4_trigger_mount()
808 MI4_HOLD(mi); in nfs4_trigger_mount()
809 VFS_HOLD(mi->mi_vfsp); in nfs4_trigger_mount()
811 net = mi->mi_ephemeral_tree; in nfs4_trigger_mount()
814 mutex_exit(&mi->mi_lock); in nfs4_trigger_mount()
911 mntinfo4_t *mi = VTOMI4(vp); in nfs4_trigger_domount_args_create() local
913 nointr = !(mi->mi_flags & MI4_INT); in nfs4_trigger_domount_args_create()
916 svp = mi->mi_curr_serv; in nfs4_trigger_domount_args_create()
928 nargs_head = nfs4_trigger_nargs_create(mi, svp, esi_first); in nfs4_trigger_domount_args_create()
963 for (svp = mi->mi_servers; svp != NULL; svp = svp->sv_next) { in nfs4_trigger_domount_args_create()
980 if (svp == mi->mi_curr_serv && esi_first != NULL) in nfs4_trigger_domount_args_create()
1021 next = nfs4_trigger_nargs_create(mi, svp, esi); in nfs4_trigger_domount_args_create()
1381 nfs4_fetch_locations(mntinfo4_t *mi, nfs4_sharedfh_t *sfh, char *nm, in nfs4_fetch_locations() argument
1395 (void) nfs_rw_enter_sig(&mi->mi_recovlock, RW_READER, 0); in nfs4_fetch_locations()
1397 ASSERT(nfs_rw_lock_held(&mi->mi_recovlock, RW_READER) || in nfs4_fetch_locations()
1398 nfs_rw_lock_held(&mi->mi_recovlock, RW_WRITER)); in nfs4_fetch_locations()
1400 sp = find_nfs4_server(mi); in nfs4_fetch_locations()
1402 nfs_rw_exit(&mi->mi_recovlock); in nfs4_fetch_locations()
1411 (void) nfs_rw_enter_sig(&mi->mi_recovlock, RW_WRITER, 0); in nfs4_fetch_locations()
1452 argop[2].nfs_argop4_u.opgetattr.mi = mi; in nfs4_fetch_locations()
1454 rfs4call(mi, &args, &res, cr, &doqueue, 0, &e); in nfs4_fetch_locations()
1457 nfs_rw_exit(&mi->mi_recovlock); in nfs4_fetch_locations()
1536 mntinfo4_t *mi; in find_referral_stubvp() local
1546 mi = VTOMI4(dvp); in find_referral_stubvp()
1547 if (nfs4_fetch_locations(mi, VTOR4(dvp)->r_fh, nm, cr, in find_referral_stubvp()
1622 nfs4_process_referral(mntinfo4_t *mi, nfs4_sharedfh_t *sfh, in nfs4_process_referral() argument
1633 ret = nfs4_fetch_locations(mi, sfh, nm, cr, &garp, &callres, TRUE); in nfs4_process_referral()
1647 if (r4find_by_fsid(mi, &garp.n4g_fsid)) { in nfs4_process_referral()
1649 mntinfo4_t *, mi, nfs4_ga_res_t *, &garp, in nfs4_process_referral()
1670 nfsfsloc.addr, !(mi->mi_flags & MI4_INT)); in nfs4_process_referral()
1714 mntinfo4_t *mi; in nfs4_trigger_esi_create_referral() local
1740 mi = VTOMI4(dvp); in nfs4_trigger_esi_create_referral()
1741 index = nfs4_process_referral(mi, drp->r_fh, fn, cr, in nfs4_trigger_esi_create_referral()
1978 nfs4_trigger_nargs_create(mntinfo4_t *mi, servinfo4_t *svp, in nfs4_trigger_nargs_create() argument
2005 mutex_enter(&mi->mi_lock); in nfs4_trigger_nargs_create()
2007 if (!(mi->mi_flags & MI4_HARD)) in nfs4_trigger_nargs_create()
2012 nargs->wsize = mi->mi_stsize; in nfs4_trigger_nargs_create()
2013 nargs->rsize = mi->mi_tsize; in nfs4_trigger_nargs_create()
2014 nargs->timeo = mi->mi_timeo; in nfs4_trigger_nargs_create()
2015 nargs->retrans = mi->mi_retrans; in nfs4_trigger_nargs_create()
2017 if (mi->mi_flags & MI4_INT) in nfs4_trigger_nargs_create()
2019 if (mi->mi_flags & MI4_NOAC) in nfs4_trigger_nargs_create()
2024 nargs->acregmin = HR2SEC(mi->mi_acregmin); in nfs4_trigger_nargs_create()
2025 nargs->acregmax = HR2SEC(mi->mi_acregmax); in nfs4_trigger_nargs_create()
2026 nargs->acdirmin = HR2SEC(mi->mi_acdirmin); in nfs4_trigger_nargs_create()
2027 nargs->acdirmax = HR2SEC(mi->mi_acdirmax); in nfs4_trigger_nargs_create()
2032 if (mi->mi_flags & MI4_NOCTO) in nfs4_trigger_nargs_create()
2034 if (mi->mi_flags & MI4_GRPID) in nfs4_trigger_nargs_create()
2036 if (mi->mi_flags & MI4_LLOCK) in nfs4_trigger_nargs_create()
2038 if (mi->mi_flags & MI4_NOPRINT) in nfs4_trigger_nargs_create()
2040 if (mi->mi_flags & MI4_DIRECTIO) in nfs4_trigger_nargs_create()
2042 if (mi->mi_flags & MI4_PUBLIC && nargs->flags & NFSMNT_MIRRORMOUNT) in nfs4_trigger_nargs_create()
2051 mutex_exit(&mi->mi_lock); in nfs4_trigger_nargs_create()
2140 nfs4_record_ephemeral_mount(mntinfo4_t *mi, vnode_t *mvp) in nfs4_record_ephemeral_mount() argument
2167 mutex_enter(&mi->mi_lock); in nfs4_record_ephemeral_mount()
2169 net = mi->mi_ephemeral_tree = in nfs4_record_ephemeral_mount()
2183 mutex_exit(&mi->mi_lock); in nfs4_record_ephemeral_mount()
2201 eph->ne_mount = mi; in nfs4_record_ephemeral_mount()
2202 MI4_HOLD(mi); in nfs4_record_ephemeral_mount()
2203 VFS_HOLD(mi->mi_vfsp); in nfs4_record_ephemeral_mount()
2212 mi->mi_ephemeral = eph; in nfs4_record_ephemeral_mount()
2235 mi->mi_flags &= ~MI4_EPHEMERAL; in nfs4_record_ephemeral_mount()
2236 mi->mi_ephemeral = NULL; in nfs4_record_ephemeral_mount()
2238 VFS_RELE(mi->mi_vfsp); in nfs4_record_ephemeral_mount()
2239 MI4_RELE(mi); in nfs4_record_ephemeral_mount()
2280 mutex_exit(&mi->mi_lock); in nfs4_record_ephemeral_mount()
2332 mntinfo4_t *mi; in nfs4_ephemeral_unmount_engine() local
2388 mi = e->ne_mount; in nfs4_ephemeral_unmount_engine()
2389 mutex_enter(&mi->mi_lock); in nfs4_ephemeral_unmount_engine()
2390 vfsp = mi->mi_vfsp; in nfs4_ephemeral_unmount_engine()
2403 mi->mi_flags |= MI4_EPHEMERAL_RECURSED; in nfs4_ephemeral_unmount_engine()
2404 mutex_exit(&mi->mi_lock); in nfs4_ephemeral_unmount_engine()
2412 mutex_enter(&mi->mi_lock); in nfs4_ephemeral_unmount_engine()
2413 mi->mi_flags &= ~MI4_EPHEMERAL_RECURSED; in nfs4_ephemeral_unmount_engine()
2414 mutex_exit(&mi->mi_lock); in nfs4_ephemeral_unmount_engine()
2478 nfs4_ephemeral_umount_activate(mntinfo4_t *mi, bool_t *pmust_unlock, in nfs4_ephemeral_umount_activate() argument
2484 mutex_enter(&mi->mi_lock); in nfs4_ephemeral_umount_activate()
2485 if (mi->mi_ephemeral) { in nfs4_ephemeral_umount_activate()
2491 if (!(mi->mi_flags & MI4_EPHEMERAL_RECURSED)) in nfs4_ephemeral_umount_activate()
2492 nfs4_ephemeral_umount_cleanup(mi->mi_ephemeral); in nfs4_ephemeral_umount_activate()
2495 ASSERT(mi->mi_ephemeral != NULL); in nfs4_ephemeral_umount_activate()
2497 kmem_free(mi->mi_ephemeral, sizeof (*mi->mi_ephemeral)); in nfs4_ephemeral_umount_activate()
2498 mi->mi_ephemeral = NULL; in nfs4_ephemeral_umount_activate()
2499 VFS_RELE(mi->mi_vfsp); in nfs4_ephemeral_umount_activate()
2500 MI4_RELE(mi); in nfs4_ephemeral_umount_activate()
2502 mutex_exit(&mi->mi_lock); in nfs4_ephemeral_umount_activate()
2515 nfs4_ephemeral_umount(mntinfo4_t *mi, int flag, cred_t *cr, in nfs4_ephemeral_umount() argument
2537 mutex_enter(&mi->mi_lock); in nfs4_ephemeral_umount()
2558 *pnet = net = mi->mi_ephemeral_tree; in nfs4_ephemeral_umount()
2560 mutex_exit(&mi->mi_lock); in nfs4_ephemeral_umount()
2564 eph = mi->mi_ephemeral; in nfs4_ephemeral_umount()
2565 is_recursed = mi->mi_flags & MI4_EPHEMERAL_RECURSED; in nfs4_ephemeral_umount()
2601 mutex_exit(&mi->mi_lock); in nfs4_ephemeral_umount()
2611 mutex_exit(&mi->mi_lock); in nfs4_ephemeral_umount()
2657 mutex_enter(&mi->mi_lock); in nfs4_ephemeral_umount()
2658 eph = mi->mi_ephemeral; in nfs4_ephemeral_umount()
2659 mutex_exit(&mi->mi_lock); in nfs4_ephemeral_umount()
2772 mutex_enter(&mi->mi_lock); in nfs4_ephemeral_umount()
2773 mi->mi_ephemeral_tree = NULL; in nfs4_ephemeral_umount()
2774 mutex_exit(&mi->mi_lock); in nfs4_ephemeral_umount()
2858 mntinfo4_t *mi; in nfs4_ephemeral_harvest_forest() local
2889 mi = net->net_root->ne_mount; in nfs4_ephemeral_harvest_forest()
2891 vfsp = mi->mi_vfsp; in nfs4_ephemeral_harvest_forest()
2995 mi = e->ne_mount; in nfs4_ephemeral_harvest_forest()
2996 vfsp = mi->mi_vfsp; in nfs4_ephemeral_harvest_forest()