Lines Matching refs:lhyp
6807 struct nfslayouthash *lhyp; in nfsrv_layoutget() local
6850 lhyp = NFSLAYOUTHASH(&fh); in nfsrv_layoutget()
6851 NFSLOCKLAYOUT(lhyp); in nfsrv_layoutget()
6861 NFSUNLOCKLAYOUT(lhyp); in nfsrv_layoutget()
6877 nfsrv_freelayout(&lhyp->list, lyp); in nfsrv_layoutget()
6883 NFSUNLOCKLAYOUT(lhyp); in nfsrv_layoutget()
6889 NFSUNLOCKLAYOUT(lhyp); in nfsrv_layoutget()
6901 NFSUNLOCKLAYOUT(lhyp); in nfsrv_layoutget()
6905 NFSUNLOCKLAYOUT(lhyp); in nfsrv_layoutget()
7121 struct nfslayouthash *lhyp; in nfsrv_flexmirrordel() local
7129 lhyp = &nfslayouthash[i]; in nfsrv_flexmirrordel()
7130 NFSLOCKLAYOUT(lhyp); in nfsrv_flexmirrordel()
7131 TAILQ_FOREACH_SAFE(lyp, &lhyp->list, lay_list, nlyp) { in nfsrv_flexmirrordel()
7143 TAILQ_REMOVE(&lhyp->list, lyp, in nfsrv_flexmirrordel()
7155 NFSUNLOCKLAYOUT(lhyp); in nfsrv_flexmirrordel()
7222 struct nfslayouthash *lhyp; in nfsrv_recalloldlayout() local
7229 lhyp = &nfslayouthash[arc4random() % nfsrv_layouthashsize]; in nfsrv_recalloldlayout()
7230 NFSLOCKLAYOUT(lhyp); in nfsrv_recalloldlayout()
7231 TAILQ_FOREACH_REVERSE(lyp, &lhyp->list, nfslayouthead, lay_list) { in nfsrv_recalloldlayout()
7247 NFSUNLOCKLAYOUT(lhyp); in nfsrv_recalloldlayout()
7254 NFSLOCKLAYOUT(lhyp); in nfsrv_recalloldlayout()
7271 nfsrv_freelayout(&lhyp->list, lyp); in nfsrv_recalloldlayout()
7280 TAILQ_REMOVE(&lhyp->list, lyp, in nfsrv_recalloldlayout()
7282 TAILQ_INSERT_HEAD(&lhyp->list, lyp, in nfsrv_recalloldlayout()
7286 NFSUNLOCKLAYOUT(lhyp); in nfsrv_recalloldlayout()
7301 struct nfslayouthash *lhyp; in nfsrv_layoutreturn() local
7323 lhyp = NFSLAYOUTHASH(&fh); in nfsrv_layoutreturn()
7325 NFSLOCKLAYOUT(lhyp); in nfsrv_layoutreturn()
7355 nfsrv_freelayout(&lhyp->list, in nfsrv_layoutreturn()
7362 NFSUNLOCKLAYOUT(lhyp); in nfsrv_layoutreturn()
7403 struct nfslayouthash *lhyp; in nfsrv_findlayout() local
7409 lhyp = NFSLAYOUTHASH(fhp); in nfsrv_findlayout()
7410 TAILQ_FOREACH(lyp, &lhyp->list, lay_list) { in nfsrv_findlayout()
7431 struct nfslayouthash *lhyp; in nfsrv_addlayout() local
7456 lhyp = NFSLAYOUTHASH(fhp); in nfsrv_addlayout()
7457 NFSLOCKLAYOUT(lhyp); in nfsrv_addlayout()
7458 TAILQ_FOREACH(nlyp, &lhyp->list, lay_list) { in nfsrv_addlayout()
7474 NFSUNLOCKLAYOUT(lhyp); in nfsrv_addlayout()
7484 TAILQ_INSERT_HEAD(&lhyp->list, lyp, lay_list); in nfsrv_addlayout()
7485 NFSUNLOCKLAYOUT(lhyp); in nfsrv_addlayout()
7550 struct nfslayouthash *lhyp; in nfsrv_freelayoutlist() local
7555 lhyp = &nfslayouthash[i]; in nfsrv_freelayoutlist()
7556 NFSLOCKLAYOUT(lhyp); in nfsrv_freelayoutlist()
7557 TAILQ_FOREACH_SAFE(lyp, &lhyp->list, lay_list, nlyp) { in nfsrv_freelayoutlist()
7559 nfsrv_freelayout(&lhyp->list, lyp); in nfsrv_freelayoutlist()
7561 NFSUNLOCKLAYOUT(lhyp); in nfsrv_freelayoutlist()
7646 struct nfslayouthash *lhyp; in nfsrv_freelayouts() local
7651 lhyp = &nfslayouthash[i]; in nfsrv_freelayouts()
7652 NFSLOCKLAYOUT(lhyp); in nfsrv_freelayouts()
7653 TAILQ_FOREACH_SAFE(lyp, &lhyp->list, lay_list, nlyp) { in nfsrv_freelayouts()
7665 nfsrv_freelayout(&lhyp->list, lyp); in nfsrv_freelayouts()
7667 NFSUNLOCKLAYOUT(lhyp); in nfsrv_freelayouts()
7677 struct nfslayouthash *lhyp; in nfsrv_freefilelayouts() local
7680 lhyp = NFSLAYOUTHASH(fhp); in nfsrv_freefilelayouts()
7681 NFSLOCKLAYOUT(lhyp); in nfsrv_freefilelayouts()
7682 TAILQ_FOREACH_SAFE(lyp, &lhyp->list, lay_list, nlyp) { in nfsrv_freefilelayouts()
7684 nfsrv_freelayout(&lhyp->list, lyp); in nfsrv_freefilelayouts()
7686 NFSUNLOCKLAYOUT(lhyp); in nfsrv_freefilelayouts()
7695 struct nfslayouthash *lhyp; in nfsrv_freealllayouts() local
7700 lhyp = &nfslayouthash[i]; in nfsrv_freealllayouts()
7701 NFSLOCKLAYOUT(lhyp); in nfsrv_freealllayouts()
7702 TAILQ_FOREACH_SAFE(lyp, &lhyp->list, lay_list, nlyp) in nfsrv_freealllayouts()
7703 nfsrv_freelayout(&lhyp->list, lyp); in nfsrv_freealllayouts()
7704 NFSUNLOCKLAYOUT(lhyp); in nfsrv_freealllayouts()
8178 struct nfslayouthash *lhyp; in nfsrv_checkdsattr() local
8190 lhyp = NFSLAYOUTHASH(&fh); in nfsrv_checkdsattr()
8191 NFSLOCKLAYOUT(lhyp); in nfsrv_checkdsattr()
8192 TAILQ_FOREACH(lyp, &lhyp->list, lay_list) { in nfsrv_checkdsattr()
8202 NFSUNLOCKLAYOUT(lhyp); in nfsrv_checkdsattr()
8325 struct nfslayouthash *lhyp; in nfsrv_copymr() local
8376 lhyp = NFSLAYOUTHASH(&fh); in nfsrv_copymr()
8378 NFSLOCKLAYOUT(lhyp); in nfsrv_copymr()
8379 TAILQ_FOREACH_SAFE(lyp, &lhyp->list, lay_list, nlyp) { in nfsrv_copymr()
8382 TAILQ_REMOVE(&lhyp->list, lyp, lay_list); in nfsrv_copymr()
8387 NFSUNLOCKLAYOUT(lhyp); in nfsrv_copymr()
8880 struct nfslayouthash *lhyp; in nfsrv_marknospc() local
8893 lhyp = &nfslayouthash[i]; in nfsrv_marknospc()
8894 NFSLOCKLAYOUT(lhyp); in nfsrv_marknospc()
8895 TAILQ_FOREACH(lyp, &lhyp->list, lay_list) { in nfsrv_marknospc()
8906 NFSUNLOCKLAYOUT(lhyp); in nfsrv_marknospc()