• Home
  • Raw
  • Download

Lines Matching refs:ctx

275 static void nfs_validate_transport_protocol(struct nfs_fs_context *ctx)  in nfs_validate_transport_protocol()  argument
277 switch (ctx->nfs_server.protocol) { in nfs_validate_transport_protocol()
283 ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_validate_transport_protocol()
291 static void nfs_set_mount_transport_protocol(struct nfs_fs_context *ctx) in nfs_set_mount_transport_protocol() argument
293 nfs_validate_transport_protocol(ctx); in nfs_set_mount_transport_protocol()
295 if (ctx->mount_server.protocol == XPRT_TRANSPORT_UDP || in nfs_set_mount_transport_protocol()
296 ctx->mount_server.protocol == XPRT_TRANSPORT_TCP) in nfs_set_mount_transport_protocol()
298 switch (ctx->nfs_server.protocol) { in nfs_set_mount_transport_protocol()
300 ctx->mount_server.protocol = XPRT_TRANSPORT_UDP; in nfs_set_mount_transport_protocol()
304 ctx->mount_server.protocol = XPRT_TRANSPORT_TCP; in nfs_set_mount_transport_protocol()
338 struct nfs_fs_context *ctx = nfs_fc2context(fc); in nfs_parse_security_flavors() local
386 ret = nfs_auth_info_add(fc, &ctx->auth_info, pseudoflavor); in nfs_parse_security_flavors()
397 struct nfs_fs_context *ctx = nfs_fc2context(fc); in nfs_parse_version_string() local
399 ctx->flags &= ~NFS_MOUNT_VER3; in nfs_parse_version_string()
402 ctx->version = 2; in nfs_parse_version_string()
405 ctx->flags |= NFS_MOUNT_VER3; in nfs_parse_version_string()
406 ctx->version = 3; in nfs_parse_version_string()
413 ctx->version = 4; in nfs_parse_version_string()
416 ctx->version = 4; in nfs_parse_version_string()
417 ctx->minorversion = 0; in nfs_parse_version_string()
420 ctx->version = 4; in nfs_parse_version_string()
421 ctx->minorversion = 1; in nfs_parse_version_string()
424 ctx->version = 4; in nfs_parse_version_string()
425 ctx->minorversion = 2; in nfs_parse_version_string()
440 struct nfs_fs_context *ctx = nfs_fc2context(fc); in nfs_fs_context_parse_param() local
449 return ctx->sloppy ? 1 : opt; in nfs_fs_context_parse_param()
463 ctx->flags |= NFS_MOUNT_SOFT; in nfs_fs_context_parse_param()
464 ctx->flags &= ~NFS_MOUNT_SOFTERR; in nfs_fs_context_parse_param()
467 ctx->flags |= NFS_MOUNT_SOFTERR | NFS_MOUNT_SOFTREVAL; in nfs_fs_context_parse_param()
468 ctx->flags &= ~NFS_MOUNT_SOFT; in nfs_fs_context_parse_param()
471 ctx->flags &= ~(NFS_MOUNT_SOFT | in nfs_fs_context_parse_param()
477 ctx->flags &= ~NFS_MOUNT_SOFTREVAL; in nfs_fs_context_parse_param()
479 ctx->flags |= NFS_MOUNT_SOFTREVAL; in nfs_fs_context_parse_param()
483 ctx->flags &= ~NFS_MOUNT_POSIX; in nfs_fs_context_parse_param()
485 ctx->flags |= NFS_MOUNT_POSIX; in nfs_fs_context_parse_param()
489 ctx->flags |= NFS_MOUNT_NOCTO; in nfs_fs_context_parse_param()
491 ctx->flags &= ~NFS_MOUNT_NOCTO; in nfs_fs_context_parse_param()
495 ctx->flags |= NFS_MOUNT_NOAC; in nfs_fs_context_parse_param()
497 ctx->flags &= ~NFS_MOUNT_NOAC; in nfs_fs_context_parse_param()
501 ctx->flags |= NFS_MOUNT_NONLM; in nfs_fs_context_parse_param()
502 ctx->flags |= (NFS_MOUNT_LOCAL_FLOCK | NFS_MOUNT_LOCAL_FCNTL); in nfs_fs_context_parse_param()
504 ctx->flags &= ~NFS_MOUNT_NONLM; in nfs_fs_context_parse_param()
505 ctx->flags &= ~(NFS_MOUNT_LOCAL_FLOCK | NFS_MOUNT_LOCAL_FCNTL); in nfs_fs_context_parse_param()
509 ctx->flags &= ~NFS_MOUNT_TCP; in nfs_fs_context_parse_param()
510 ctx->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_fs_context_parse_param()
513 ctx->flags |= NFS_MOUNT_TCP; in nfs_fs_context_parse_param()
514 ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_fs_context_parse_param()
517 ctx->flags |= NFS_MOUNT_TCP; /* for side protocols */ in nfs_fs_context_parse_param()
518 ctx->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_fs_context_parse_param()
523 ctx->flags |= NFS_MOUNT_NOACL; in nfs_fs_context_parse_param()
525 ctx->flags &= ~NFS_MOUNT_NOACL; in nfs_fs_context_parse_param()
529 ctx->flags |= NFS_MOUNT_NORDIRPLUS; in nfs_fs_context_parse_param()
531 ctx->flags &= ~NFS_MOUNT_NORDIRPLUS; in nfs_fs_context_parse_param()
535 ctx->flags |= NFS_MOUNT_UNSHARED; in nfs_fs_context_parse_param()
537 ctx->flags &= ~NFS_MOUNT_UNSHARED; in nfs_fs_context_parse_param()
541 ctx->flags |= NFS_MOUNT_NORESVPORT; in nfs_fs_context_parse_param()
543 ctx->flags &= ~NFS_MOUNT_NORESVPORT; in nfs_fs_context_parse_param()
547 ctx->options &= ~NFS_OPTION_FSCACHE; in nfs_fs_context_parse_param()
549 ctx->options |= NFS_OPTION_FSCACHE; in nfs_fs_context_parse_param()
550 kfree(ctx->fscache_uniq); in nfs_fs_context_parse_param()
551 ctx->fscache_uniq = NULL; in nfs_fs_context_parse_param()
554 ctx->options |= NFS_OPTION_FSCACHE; in nfs_fs_context_parse_param()
555 kfree(ctx->fscache_uniq); in nfs_fs_context_parse_param()
556 ctx->fscache_uniq = param->string; in nfs_fs_context_parse_param()
561 ctx->options &= ~NFS_OPTION_MIGRATION; in nfs_fs_context_parse_param()
563 ctx->options |= NFS_OPTION_MIGRATION; in nfs_fs_context_parse_param()
572 ctx->nfs_server.port = result.uint_32; in nfs_fs_context_parse_param()
575 ctx->rsize = result.uint_32; in nfs_fs_context_parse_param()
578 ctx->wsize = result.uint_32; in nfs_fs_context_parse_param()
581 ctx->bsize = result.uint_32; in nfs_fs_context_parse_param()
586 ctx->timeo = result.uint_32; in nfs_fs_context_parse_param()
591 ctx->retrans = result.uint_32; in nfs_fs_context_parse_param()
594 ctx->acregmin = result.uint_32; in nfs_fs_context_parse_param()
597 ctx->acregmax = result.uint_32; in nfs_fs_context_parse_param()
600 ctx->acdirmin = result.uint_32; in nfs_fs_context_parse_param()
603 ctx->acdirmax = result.uint_32; in nfs_fs_context_parse_param()
606 ctx->acregmin = result.uint_32; in nfs_fs_context_parse_param()
607 ctx->acregmax = result.uint_32; in nfs_fs_context_parse_param()
608 ctx->acdirmin = result.uint_32; in nfs_fs_context_parse_param()
609 ctx->acdirmax = result.uint_32; in nfs_fs_context_parse_param()
612 ctx->namlen = result.uint_32; in nfs_fs_context_parse_param()
617 ctx->mount_server.port = result.uint_32; in nfs_fs_context_parse_param()
623 ctx->mount_server.version = result.uint_32; in nfs_fs_context_parse_param()
628 ctx->minorversion = result.uint_32; in nfs_fs_context_parse_param()
657 ctx->flags &= ~NFS_MOUNT_TCP; in nfs_fs_context_parse_param()
658 ctx->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_fs_context_parse_param()
664 ctx->flags |= NFS_MOUNT_TCP; in nfs_fs_context_parse_param()
665 ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_fs_context_parse_param()
672 ctx->flags |= NFS_MOUNT_TCP; in nfs_fs_context_parse_param()
673 ctx->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_fs_context_parse_param()
680 ctx->protofamily = protofamily; in nfs_fs_context_parse_param()
690 ctx->mount_server.protocol = XPRT_TRANSPORT_UDP; in nfs_fs_context_parse_param()
696 ctx->mount_server.protocol = XPRT_TRANSPORT_TCP; in nfs_fs_context_parse_param()
702 ctx->mountfamily = mountfamily; in nfs_fs_context_parse_param()
707 &ctx->nfs_server.address, in nfs_fs_context_parse_param()
708 sizeof(ctx->nfs_server._address)); in nfs_fs_context_parse_param()
711 ctx->nfs_server.addrlen = len; in nfs_fs_context_parse_param()
714 kfree(ctx->client_address); in nfs_fs_context_parse_param()
715 ctx->client_address = param->string; in nfs_fs_context_parse_param()
719 kfree(ctx->mount_server.hostname); in nfs_fs_context_parse_param()
720 ctx->mount_server.hostname = param->string; in nfs_fs_context_parse_param()
725 &ctx->mount_server.address, in nfs_fs_context_parse_param()
726 sizeof(ctx->mount_server._address)); in nfs_fs_context_parse_param()
729 ctx->mount_server.addrlen = len; in nfs_fs_context_parse_param()
734 ctx->nfs_server.nconnect = result.uint_32; in nfs_fs_context_parse_param()
739 ctx->flags &= ~(NFS_MOUNT_LOOKUP_CACHE_NONEG|NFS_MOUNT_LOOKUP_CACHE_NONE); in nfs_fs_context_parse_param()
742 ctx->flags &= ~NFS_MOUNT_LOOKUP_CACHE_NONE; in nfs_fs_context_parse_param()
743 ctx->flags |= NFS_MOUNT_LOOKUP_CACHE_NONEG; in nfs_fs_context_parse_param()
746 ctx->flags |= NFS_MOUNT_LOOKUP_CACHE_NONEG|NFS_MOUNT_LOOKUP_CACHE_NONE; in nfs_fs_context_parse_param()
755 ctx->flags |= (NFS_MOUNT_LOCAL_FLOCK | in nfs_fs_context_parse_param()
759 ctx->flags |= NFS_MOUNT_LOCAL_FLOCK; in nfs_fs_context_parse_param()
762 ctx->flags |= NFS_MOUNT_LOCAL_FCNTL; in nfs_fs_context_parse_param()
765 ctx->flags &= ~(NFS_MOUNT_LOCAL_FLOCK | in nfs_fs_context_parse_param()
777 ctx->sloppy = true; in nfs_fs_context_parse_param()
804 struct nfs_fs_context *ctx = nfs_fc2context(fc); in nfs_parse_source() local
839 kfree(ctx->nfs_server.hostname); in nfs_parse_source()
842 ctx->nfs_server.hostname = kmemdup_nul(dev_name, len, GFP_KERNEL); in nfs_parse_source()
843 if (!ctx->nfs_server.hostname) in nfs_parse_source()
848 ctx->nfs_server.export_path = kmemdup_nul(end, len, GFP_KERNEL); in nfs_parse_source()
849 if (!ctx->nfs_server.export_path) in nfs_parse_source()
852 dfprintk(MOUNT, "NFS: MNTPATH: '%s'\n", ctx->nfs_server.export_path); in nfs_parse_source()
892 struct nfs_fs_context *ctx = nfs_fc2context(fc); in nfs23_parse_monolithic() local
893 struct nfs_fh *mntfh = ctx->mntfh; in nfs23_parse_monolithic()
894 struct sockaddr *sap = (struct sockaddr *)&ctx->nfs_server.address; in nfs23_parse_monolithic()
900 ctx->version = NFS_DEFAULT_VERSION; in nfs23_parse_monolithic()
928 ctx->version = 3; in nfs23_parse_monolithic()
931 ctx->version = 2; in nfs23_parse_monolithic()
953 ctx->flags = data->flags & NFS_MOUNT_FLAGMASK; in nfs23_parse_monolithic()
954 ctx->flags |= extra_flags; in nfs23_parse_monolithic()
955 ctx->rsize = data->rsize; in nfs23_parse_monolithic()
956 ctx->wsize = data->wsize; in nfs23_parse_monolithic()
957 ctx->timeo = data->timeo; in nfs23_parse_monolithic()
958 ctx->retrans = data->retrans; in nfs23_parse_monolithic()
959 ctx->acregmin = data->acregmin; in nfs23_parse_monolithic()
960 ctx->acregmax = data->acregmax; in nfs23_parse_monolithic()
961 ctx->acdirmin = data->acdirmin; in nfs23_parse_monolithic()
962 ctx->acdirmax = data->acdirmax; in nfs23_parse_monolithic()
963 ctx->need_mount = false; in nfs23_parse_monolithic()
966 ctx->nfs_server.addrlen = sizeof(data->addr); in nfs23_parse_monolithic()
967 ctx->nfs_server.port = ntohs(data->addr.sin_port); in nfs23_parse_monolithic()
973 ctx->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs23_parse_monolithic()
975 ctx->nfs_server.hostname = kstrdup(data->hostname, GFP_KERNEL); in nfs23_parse_monolithic()
976 if (!ctx->nfs_server.hostname) in nfs23_parse_monolithic()
979 ctx->namlen = data->namlen; in nfs23_parse_monolithic()
980 ctx->bsize = data->bsize; in nfs23_parse_monolithic()
983 ctx->selected_flavor = data->pseudoflavor; in nfs23_parse_monolithic()
985 ctx->selected_flavor = RPC_AUTH_UNIX; in nfs23_parse_monolithic()
988 ctx->flags &= ~(NFS_MOUNT_LOCAL_FLOCK| in nfs23_parse_monolithic()
991 ctx->flags |= (NFS_MOUNT_LOCAL_FLOCK| in nfs23_parse_monolithic()
1021 ctx->skip_reconfig_option_check = true; in nfs23_parse_monolithic()
1029 ctx->skip_reconfig_option_check = true; in nfs23_parse_monolithic()
1120 struct nfs_fs_context *ctx = nfs_fc2context(fc); in nfs4_parse_monolithic() local
1121 struct sockaddr *sap = (struct sockaddr *)&ctx->nfs_server.address; in nfs4_parse_monolithic()
1131 ctx->version = 4; in nfs4_parse_monolithic()
1139 if (data->host_addrlen > sizeof(ctx->nfs_server.address)) in nfs4_parse_monolithic()
1143 ctx->nfs_server.addrlen = data->host_addrlen; in nfs4_parse_monolithic()
1148 ctx->nfs_server.port = ntohs(((struct sockaddr_in *)sap)->sin_port); in nfs4_parse_monolithic()
1158 ctx->selected_flavor = pseudoflavor; in nfs4_parse_monolithic()
1160 ctx->selected_flavor = RPC_AUTH_UNIX; in nfs4_parse_monolithic()
1166 ctx->nfs_server.hostname = c; in nfs4_parse_monolithic()
1171 ctx->nfs_server.export_path = c; in nfs4_parse_monolithic()
1177 ctx->client_address = c; in nfs4_parse_monolithic()
1184 ctx->flags = data->flags & NFS4_MOUNT_FLAGMASK; in nfs4_parse_monolithic()
1185 ctx->rsize = data->rsize; in nfs4_parse_monolithic()
1186 ctx->wsize = data->wsize; in nfs4_parse_monolithic()
1187 ctx->timeo = data->timeo; in nfs4_parse_monolithic()
1188 ctx->retrans = data->retrans; in nfs4_parse_monolithic()
1189 ctx->acregmin = data->acregmin; in nfs4_parse_monolithic()
1190 ctx->acregmax = data->acregmax; in nfs4_parse_monolithic()
1191 ctx->acdirmin = data->acdirmin; in nfs4_parse_monolithic()
1192 ctx->acdirmax = data->acdirmax; in nfs4_parse_monolithic()
1193 ctx->nfs_server.protocol = data->proto; in nfs4_parse_monolithic()
1194 nfs_validate_transport_protocol(ctx); in nfs4_parse_monolithic()
1195 if (ctx->nfs_server.protocol == XPRT_TRANSPORT_UDP) in nfs4_parse_monolithic()
1198 ctx->skip_reconfig_option_check = true; in nfs4_parse_monolithic()
1235 struct nfs_fs_context *ctx = nfs_fc2context(fc); in nfs_fs_context_validate() local
1237 struct sockaddr *sap = (struct sockaddr *)&ctx->nfs_server.address; in nfs_fs_context_validate()
1247 if (ctx->minorversion && ctx->version != 4) in nfs_fs_context_validate()
1250 if (ctx->options & NFS_OPTION_MIGRATION && in nfs_fs_context_validate()
1251 (ctx->version != 4 || ctx->minorversion != 0)) in nfs_fs_context_validate()
1257 if (ctx->protofamily != AF_UNSPEC && in nfs_fs_context_validate()
1258 ctx->protofamily != ctx->nfs_server.address.sa_family) in nfs_fs_context_validate()
1261 if (ctx->mountfamily != AF_UNSPEC) { in nfs_fs_context_validate()
1262 if (ctx->mount_server.addrlen) { in nfs_fs_context_validate()
1263 if (ctx->mountfamily != ctx->mount_server.address.sa_family) in nfs_fs_context_validate()
1266 if (ctx->mountfamily != ctx->nfs_server.address.sa_family) in nfs_fs_context_validate()
1274 if (ctx->version == 4) { in nfs_fs_context_validate()
1276 if (ctx->nfs_server.protocol == XPRT_TRANSPORT_RDMA) in nfs_fs_context_validate()
1282 nfs_validate_transport_protocol(ctx); in nfs_fs_context_validate()
1283 if (ctx->nfs_server.protocol == XPRT_TRANSPORT_UDP) in nfs_fs_context_validate()
1285 ctx->flags &= ~(NFS_MOUNT_NONLM | NFS_MOUNT_NOACL | in nfs_fs_context_validate()
1292 nfs_set_mount_transport_protocol(ctx); in nfs_fs_context_validate()
1294 if (ctx->nfs_server.protocol == XPRT_TRANSPORT_UDP) in nfs_fs_context_validate()
1297 if (ctx->nfs_server.protocol == XPRT_TRANSPORT_RDMA) in nfs_fs_context_validate()
1301 nfs_set_port(sap, &ctx->nfs_server.port, port); in nfs_fs_context_validate()
1308 if (!ctx->nfs_mod) { in nfs_fs_context_validate()
1309 nfs_mod = get_nfs_version(ctx->version); in nfs_fs_context_validate()
1314 ctx->nfs_mod = nfs_mod; in nfs_fs_context_validate()
1318 if (fc->fs_type != ctx->nfs_mod->nfs_fs) { in nfs_fs_context_validate()
1320 __module_get(ctx->nfs_mod->nfs_fs->owner); in nfs_fs_context_validate()
1321 fc->fs_type = ctx->nfs_mod->nfs_fs; in nfs_fs_context_validate()
1340 ctx->version, ctx->minorversion); in nfs_fs_context_validate()
1353 struct nfs_fs_context *ctx = nfs_fc2context(fc); in nfs_get_tree() local
1358 if (!ctx->internal) in nfs_get_tree()
1359 return ctx->nfs_mod->rpc_ops->try_get_tree(fc); in nfs_get_tree()
1372 struct nfs_fs_context *src = nfs_fc2context(src_fc), *ctx; in nfs_fs_context_dup() local
1374 ctx = kmemdup(src, sizeof(struct nfs_fs_context), GFP_KERNEL); in nfs_fs_context_dup()
1375 if (!ctx) in nfs_fs_context_dup()
1378 ctx->mntfh = nfs_alloc_fhandle(); in nfs_fs_context_dup()
1379 if (!ctx->mntfh) { in nfs_fs_context_dup()
1380 kfree(ctx); in nfs_fs_context_dup()
1383 nfs_copy_fh(ctx->mntfh, src->mntfh); in nfs_fs_context_dup()
1385 __module_get(ctx->nfs_mod->owner); in nfs_fs_context_dup()
1386 ctx->client_address = NULL; in nfs_fs_context_dup()
1387 ctx->mount_server.hostname = NULL; in nfs_fs_context_dup()
1388 ctx->nfs_server.export_path = NULL; in nfs_fs_context_dup()
1389 ctx->nfs_server.hostname = NULL; in nfs_fs_context_dup()
1390 ctx->fscache_uniq = NULL; in nfs_fs_context_dup()
1391 ctx->clone_data.fattr = NULL; in nfs_fs_context_dup()
1392 fc->fs_private = ctx; in nfs_fs_context_dup()
1398 struct nfs_fs_context *ctx = nfs_fc2context(fc); in nfs_fs_context_free() local
1400 if (ctx) { in nfs_fs_context_free()
1401 if (ctx->server) in nfs_fs_context_free()
1402 nfs_free_server(ctx->server); in nfs_fs_context_free()
1403 if (ctx->nfs_mod) in nfs_fs_context_free()
1404 put_nfs_version(ctx->nfs_mod); in nfs_fs_context_free()
1405 kfree(ctx->client_address); in nfs_fs_context_free()
1406 kfree(ctx->mount_server.hostname); in nfs_fs_context_free()
1407 kfree(ctx->nfs_server.export_path); in nfs_fs_context_free()
1408 kfree(ctx->nfs_server.hostname); in nfs_fs_context_free()
1409 kfree(ctx->fscache_uniq); in nfs_fs_context_free()
1410 nfs_free_fhandle(ctx->mntfh); in nfs_fs_context_free()
1411 nfs_free_fattr(ctx->clone_data.fattr); in nfs_fs_context_free()
1412 kfree(ctx); in nfs_fs_context_free()
1432 struct nfs_fs_context *ctx; in nfs_init_fs_context() local
1434 ctx = kzalloc(sizeof(struct nfs_fs_context), GFP_KERNEL); in nfs_init_fs_context()
1435 if (unlikely(!ctx)) in nfs_init_fs_context()
1438 ctx->mntfh = nfs_alloc_fhandle(); in nfs_init_fs_context()
1439 if (unlikely(!ctx->mntfh)) { in nfs_init_fs_context()
1440 kfree(ctx); in nfs_init_fs_context()
1444 ctx->protofamily = AF_UNSPEC; in nfs_init_fs_context()
1445 ctx->mountfamily = AF_UNSPEC; in nfs_init_fs_context()
1446 ctx->mount_server.port = NFS_UNSPEC_PORT; in nfs_init_fs_context()
1453 ctx->flags = nfss->flags; in nfs_init_fs_context()
1454 ctx->rsize = nfss->rsize; in nfs_init_fs_context()
1455 ctx->wsize = nfss->wsize; in nfs_init_fs_context()
1456 ctx->retrans = nfss->client->cl_timeout->to_retries; in nfs_init_fs_context()
1457 ctx->selected_flavor = nfss->client->cl_auth->au_flavor; in nfs_init_fs_context()
1458 ctx->acregmin = nfss->acregmin / HZ; in nfs_init_fs_context()
1459 ctx->acregmax = nfss->acregmax / HZ; in nfs_init_fs_context()
1460 ctx->acdirmin = nfss->acdirmin / HZ; in nfs_init_fs_context()
1461 ctx->acdirmax = nfss->acdirmax / HZ; in nfs_init_fs_context()
1462 ctx->timeo = 10U * nfss->client->cl_timeout->to_initval / HZ; in nfs_init_fs_context()
1463 ctx->nfs_server.port = nfss->port; in nfs_init_fs_context()
1464 ctx->nfs_server.addrlen = nfss->nfs_client->cl_addrlen; in nfs_init_fs_context()
1465 ctx->version = nfss->nfs_client->rpc_ops->version; in nfs_init_fs_context()
1466 ctx->minorversion = nfss->nfs_client->cl_minorversion; in nfs_init_fs_context()
1468 memcpy(&ctx->nfs_server.address, &nfss->nfs_client->cl_addr, in nfs_init_fs_context()
1469 ctx->nfs_server.addrlen); in nfs_init_fs_context()
1476 ctx->nfs_mod = nfss->nfs_client->cl_nfs_mod; in nfs_init_fs_context()
1477 __module_get(ctx->nfs_mod->owner); in nfs_init_fs_context()
1480 ctx->timeo = NFS_UNSPEC_TIMEO; in nfs_init_fs_context()
1481 ctx->retrans = NFS_UNSPEC_RETRANS; in nfs_init_fs_context()
1482 ctx->acregmin = NFS_DEF_ACREGMIN; in nfs_init_fs_context()
1483 ctx->acregmax = NFS_DEF_ACREGMAX; in nfs_init_fs_context()
1484 ctx->acdirmin = NFS_DEF_ACDIRMIN; in nfs_init_fs_context()
1485 ctx->acdirmax = NFS_DEF_ACDIRMAX; in nfs_init_fs_context()
1486 ctx->nfs_server.port = NFS_UNSPEC_PORT; in nfs_init_fs_context()
1487 ctx->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_init_fs_context()
1488 ctx->selected_flavor = RPC_AUTH_MAXFLAVOR; in nfs_init_fs_context()
1489 ctx->minorversion = 0; in nfs_init_fs_context()
1490 ctx->need_mount = true; in nfs_init_fs_context()
1492 fc->fs_private = ctx; in nfs_init_fs_context()