Lines Matching refs:nn

884 	struct nfsd_net		*nn = net_generic(net, nfsd_net_id);  in exp_rootfh()  local
885 struct cache_detail *cd = nn->svc_export_cache; in exp_rootfh()
925 struct nfsd_net *nn = net_generic(cd->net, nfsd_net_id); in exp_find() local
926 struct svc_expkey *ek = exp_find_key(nn->svc_expkey_cache, clp, fsid_type, fsidv, reqp); in exp_find()
931 cache_put(&ek->h, nn->svc_expkey_cache); in exp_find()
973 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in rqst_exp_get_by_name() local
974 struct cache_detail *cd = nn->svc_export_cache; in rqst_exp_get_by_name()
1004 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in rqst_exp_find() local
1005 struct cache_detail *cd = nn->svc_export_cache; in rqst_exp_find()
1219 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_export_init() local
1223 nn->svc_export_cache = cache_create_net(&svc_export_cache_template, net); in nfsd_export_init()
1224 if (IS_ERR(nn->svc_export_cache)) in nfsd_export_init()
1225 return PTR_ERR(nn->svc_export_cache); in nfsd_export_init()
1226 rv = cache_register_net(nn->svc_export_cache, net); in nfsd_export_init()
1230 nn->svc_expkey_cache = cache_create_net(&svc_expkey_cache_template, net); in nfsd_export_init()
1231 if (IS_ERR(nn->svc_expkey_cache)) { in nfsd_export_init()
1232 rv = PTR_ERR(nn->svc_expkey_cache); in nfsd_export_init()
1235 rv = cache_register_net(nn->svc_expkey_cache, net); in nfsd_export_init()
1241 cache_destroy_net(nn->svc_expkey_cache, net); in nfsd_export_init()
1243 cache_unregister_net(nn->svc_export_cache, net); in nfsd_export_init()
1245 cache_destroy_net(nn->svc_export_cache, net); in nfsd_export_init()
1255 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_export_flush() local
1257 cache_purge(nn->svc_expkey_cache); in nfsd_export_flush()
1258 cache_purge(nn->svc_export_cache); in nfsd_export_flush()
1267 struct nfsd_net *nn = net_generic(net, nfsd_net_id); in nfsd_export_shutdown() local
1271 cache_unregister_net(nn->svc_expkey_cache, net); in nfsd_export_shutdown()
1272 cache_unregister_net(nn->svc_export_cache, net); in nfsd_export_shutdown()
1273 cache_destroy_net(nn->svc_expkey_cache, net); in nfsd_export_shutdown()
1274 cache_destroy_net(nn->svc_export_cache, net); in nfsd_export_shutdown()