Lines Matching refs:nfs_server
450 struct nfs_server *server = NFS_SB(sb); in nfs_sb_active()
458 struct nfs_server *server = NFS_SB(sb); in nfs_sb_deactive()
469 struct nfs_server *server = NFS_SB(dentry->d_sb); in nfs_statfs()
560 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_netid()
599 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options()
634 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options()
642 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options()
660 static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mount_options()
752 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_options()
767 static void show_sessions(struct seq_file *m, struct nfs_server *server) in show_sessions()
773 static void show_sessions(struct seq_file *m, struct nfs_server *server) {} in show_sessions()
778 static void show_pnfs(struct seq_file *m, struct nfs_server *server) in show_pnfs()
787 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id()
799 static void show_pnfs(struct seq_file *m, struct nfs_server *server) in show_pnfs()
803 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id()
836 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_stats()
928 struct nfs_server *server; in nfs_umount_begin()
952 data->nfs_server.port = NFS_UNSPEC_PORT; in nfs_alloc_parsed_mount_data()
953 data->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_alloc_parsed_mount_data()
969 kfree(data->nfs_server.export_path); in nfs_free_parsed_mount_data()
970 kfree(data->nfs_server.hostname); in nfs_free_parsed_mount_data()
1019 switch (mnt->nfs_server.protocol) { in nfs_validate_transport_protocol()
1025 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_validate_transport_protocol()
1040 switch (mnt->nfs_server.protocol) { in nfs_set_mount_transport_protocol()
1244 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1248 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1252 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1297 mnt->nfs_server.port = option; in nfs_parse_mount_options()
1413 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1419 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1424 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1466 mnt->nfs_server.addrlen = in nfs_parse_mount_options()
1469 &mnt->nfs_server.address, in nfs_parse_mount_options()
1470 sizeof(mnt->nfs_server.address)); in nfs_parse_mount_options()
1472 if (mnt->nfs_server.addrlen == 0) in nfs_parse_mount_options()
1586 protofamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1594 if (mountfamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1685 .dirpath = args->nfs_server.export_path, in nfs_try_mount()
1709 request.hostname = args->nfs_server.hostname; in nfs_try_mount()
1715 memcpy(request.sap, &args->nfs_server.address, in nfs_try_mount()
1716 args->nfs_server.addrlen); in nfs_try_mount()
1717 args->mount_server.addrlen = args->nfs_server.addrlen; in nfs_try_mount()
1835 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs_validate_mount_data()
1888 args->nfs_server.addrlen = sizeof(data->addr); in nfs_validate_mount_data()
1889 args->nfs_server.port = ntohs(data->addr.sin_port); in nfs_validate_mount_data()
1894 args->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_validate_mount_data()
1896 args->nfs_server.hostname = kstrdup(data->hostname, GFP_KERNEL); in nfs_validate_mount_data()
1902 if (!args->nfs_server.hostname) in nfs_validate_mount_data()
1955 nfs_set_port(sap, &args->nfs_server.port, 0); in nfs_validate_mount_data()
1960 &args->nfs_server.hostname, in nfs_validate_mount_data()
1962 &args->nfs_server.export_path, in nfs_validate_mount_data()
1967 kfree(args->nfs_server.export_path); in nfs_validate_mount_data()
1968 args->nfs_server.export_path = NULL; in nfs_validate_mount_data()
2023 nfs_compare_remount_data(struct nfs_server *nfss, in nfs_compare_remount_data()
2036 data->nfs_server.port != nfss->port || in nfs_compare_remount_data()
2037 data->nfs_server.addrlen != nfss->nfs_client->cl_addrlen || in nfs_compare_remount_data()
2038 !rpc_cmp_addr((struct sockaddr *)&data->nfs_server.address, in nfs_compare_remount_data()
2049 struct nfs_server *nfss = sb->s_fs_info; in nfs_remount()
2081 data->nfs_server.port = nfss->port; in nfs_remount()
2082 data->nfs_server.addrlen = nfss->nfs_client->cl_addrlen; in nfs_remount()
2083 memcpy(&data->nfs_server.address, &nfss->nfs_client->cl_addr, in nfs_remount()
2084 data->nfs_server.addrlen); in nfs_remount()
2112 struct nfs_server *server = NFS_SB(sb); in nfs_initialise_sb()
2135 struct nfs_server *server = NFS_SB(sb); in nfs_fill_super()
2160 struct nfs_server *server = NFS_SB(sb); in nfs_clone_super()
2178 static int nfs_compare_mount_options(const struct super_block *s, const struct nfs_server *b, int f… in nfs_compare_mount_options()
2180 const struct nfs_server *a = s->s_fs_info; in nfs_compare_mount_options()
2210 struct nfs_server *server;
2217 struct nfs_server *server = sb_mntdata->server; in nfs_set_super()
2229 static int nfs_compare_super_address(struct nfs_server *server1, in nfs_compare_super_address()
2230 struct nfs_server *server2) in nfs_compare_super_address()
2269 struct nfs_server *server = sb_mntdata->server, *old = NFS_SB(sb); in nfs_compare_super()
2282 static int nfs_bdi_register(struct nfs_server *server) in nfs_bdi_register()
2290 struct nfs_server *server = NULL; in nfs_fs_mount()
2395 struct nfs_server *server = NFS_SB(s); in nfs_put_super()
2405 struct nfs_server *server = NFS_SB(s); in nfs_kill_super()
2421 struct nfs_server *server; in nfs_xdev_mount()
2550 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs4_validate_text_mount_data()
2552 nfs_set_port(sap, &args->nfs_server.port, NFS_PORT); in nfs4_validate_text_mount_data()
2571 &args->nfs_server.hostname, in nfs4_validate_text_mount_data()
2573 &args->nfs_server.export_path, in nfs4_validate_text_mount_data()
2584 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs4_validate_mount_data()
2593 if (data->host_addrlen > sizeof(args->nfs_server.address)) in nfs4_validate_mount_data()
2597 args->nfs_server.addrlen = data->host_addrlen; in nfs4_validate_mount_data()
2602 args->nfs_server.port = ntohs(((struct sockaddr_in *)sap)->sin_port); in nfs4_validate_mount_data()
2616 args->nfs_server.hostname = c; in nfs4_validate_mount_data()
2621 args->nfs_server.export_path = c; in nfs4_validate_mount_data()
2643 args->nfs_server.protocol = data->proto; in nfs4_validate_mount_data()
2682 struct nfs_server *server; in nfs4_remote_mount()
2882 export_path = data->nfs_server.export_path; in nfs4_try_mount()
2883 data->nfs_server.export_path = "/"; in nfs4_try_mount()
2885 data->nfs_server.hostname); in nfs4_try_mount()
2886 data->nfs_server.export_path = export_path; in nfs4_try_mount()
2930 struct nfs_server *server = NFS_SB(sb); in nfs4_kill_super()
2949 struct nfs_server *server; in nfs4_xdev_mount()
3035 struct nfs_server *server; in nfs4_remote_referral_mount()