Lines Matching refs:nfs_server

408 	struct nfs_server *server = NFS_SB(sb);  in nfs_sb_active()
420 struct nfs_server *server = NFS_SB(sb); in nfs_sb_deactive()
432 struct nfs_server *server = NFS_SB(dentry->d_sb); in nfs_statfs()
525 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_netid()
564 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options()
599 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options()
607 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options()
625 static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mount_options()
720 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_options()
736 static void show_sessions(struct seq_file *m, struct nfs_server *server) in show_sessions()
742 static void show_sessions(struct seq_file *m, struct nfs_server *server) {} in show_sessions()
747 static void show_pnfs(struct seq_file *m, struct nfs_server *server) in show_pnfs()
756 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id()
768 static void show_pnfs(struct seq_file *m, struct nfs_server *server) in show_pnfs()
772 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id()
807 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_stats()
901 struct nfs_server *server; in nfs_umount_begin()
926 data->nfs_server.port = NFS_UNSPEC_PORT; in nfs_alloc_parsed_mount_data()
927 data->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_alloc_parsed_mount_data()
942 kfree(data->nfs_server.export_path); in nfs_free_parsed_mount_data()
943 kfree(data->nfs_server.hostname); in nfs_free_parsed_mount_data()
992 switch (mnt->nfs_server.protocol) { in nfs_validate_transport_protocol()
998 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_validate_transport_protocol()
1013 switch (mnt->nfs_server.protocol) { in nfs_set_mount_transport_protocol()
1273 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1277 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1281 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1332 mnt->nfs_server.port = option; in nfs_parse_mount_options()
1448 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1454 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1459 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1501 mnt->nfs_server.addrlen = in nfs_parse_mount_options()
1504 &mnt->nfs_server.address, in nfs_parse_mount_options()
1505 sizeof(mnt->nfs_server.address)); in nfs_parse_mount_options()
1507 if (mnt->nfs_server.addrlen == 0) in nfs_parse_mount_options()
1625 protofamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1633 if (mountfamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1719 .dirpath = args->nfs_server.export_path, in nfs_request_mount()
1743 request.hostname = args->nfs_server.hostname; in nfs_request_mount()
1749 memcpy(request.sap, &args->nfs_server.address, in nfs_request_mount()
1750 args->nfs_server.addrlen); in nfs_request_mount()
1751 args->mount_server.addrlen = args->nfs_server.addrlen; in nfs_request_mount()
1770 static struct nfs_server *nfs_try_mount_request(struct nfs_mount_info *mount_info, in nfs_try_mount_request()
1777 struct nfs_server *server = ERR_PTR(-EACCES); in nfs_try_mount_request()
1847 struct nfs_server *server; in nfs_try_mount()
1955 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs23_validate_mount_data()
2013 args->nfs_server.addrlen = sizeof(data->addr); in nfs23_validate_mount_data()
2014 args->nfs_server.port = ntohs(data->addr.sin_port); in nfs23_validate_mount_data()
2019 args->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs23_validate_mount_data()
2021 args->nfs_server.hostname = kstrdup(data->hostname, GFP_KERNEL); in nfs23_validate_mount_data()
2029 if (!args->nfs_server.hostname) in nfs23_validate_mount_data()
2126 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs_validate_text_mount_data()
2140 if (args->nfs_server.protocol == XPRT_TRANSPORT_UDP) in nfs_validate_text_mount_data()
2149 nfs_set_port(sap, &args->nfs_server.port, port); in nfs_validate_text_mount_data()
2152 &args->nfs_server.hostname, in nfs_validate_text_mount_data()
2154 &args->nfs_server.export_path, in nfs_validate_text_mount_data()
2186 nfs_compare_remount_data(struct nfs_server *nfss, in nfs_compare_remount_data()
2201 data->nfs_server.port != nfss->port || in nfs_compare_remount_data()
2202 data->nfs_server.addrlen != nfss->nfs_client->cl_addrlen || in nfs_compare_remount_data()
2203 !rpc_cmp_addr((struct sockaddr *)&data->nfs_server.address, in nfs_compare_remount_data()
2214 struct nfs_server *nfss = sb->s_fs_info; in nfs_remount()
2248 data->nfs_server.port = nfss->port; in nfs_remount()
2249 data->nfs_server.addrlen = nfss->nfs_client->cl_addrlen; in nfs_remount()
2253 memcpy(&data->nfs_server.address, &nfss->nfs_client->cl_addr, in nfs_remount()
2254 data->nfs_server.addrlen); in nfs_remount()
2283 struct nfs_server *server = NFS_SB(sb); in nfs_initialise_sb()
2306 struct nfs_server *server = NFS_SB(sb); in nfs_fill_super()
2333 struct nfs_server *server = NFS_SB(sb); in nfs_clone_super()
2352 static int nfs_compare_mount_options(const struct super_block *s, const struct nfs_server *b, int f… in nfs_compare_mount_options()
2354 const struct nfs_server *a = s->s_fs_info; in nfs_compare_mount_options()
2385 struct nfs_server *server;
2392 struct nfs_server *server = sb_mntdata->server; in nfs_set_super()
2404 static int nfs_compare_super_address(struct nfs_server *server1, in nfs_compare_super_address()
2405 struct nfs_server *server2) in nfs_compare_super_address()
2444 struct nfs_server *server = sb_mntdata->server, *old = NFS_SB(sb); in nfs_compare_super()
2462 struct nfs_server *nfss = NFS_SB(sb); in nfs_get_cache_cookie()
2477 struct nfs_server *mnt_s = NFS_SB(cloned->sb); in nfs_get_cache_cookie()
2497 static int nfs_bdi_register(struct nfs_server *server) in nfs_bdi_register()
2533 struct dentry *nfs_fs_mount_common(struct nfs_server *server, in nfs_fs_mount_common()
2655 struct nfs_server *server = NFS_SB(s); in nfs_kill_super()
2680 struct nfs_server *server; in nfs_xdev_mount()
2717 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs4_validate_mount_data()
2728 if (data->host_addrlen > sizeof(args->nfs_server.address)) in nfs4_validate_mount_data()
2732 args->nfs_server.addrlen = data->host_addrlen; in nfs4_validate_mount_data()
2737 args->nfs_server.port = ntohs(((struct sockaddr_in *)sap)->sin_port); in nfs4_validate_mount_data()
2754 args->nfs_server.hostname = c; in nfs4_validate_mount_data()
2759 args->nfs_server.export_path = c; in nfs4_validate_mount_data()
2781 args->nfs_server.protocol = data->proto; in nfs4_validate_mount_data()
2783 if (args->nfs_server.protocol == XPRT_TRANSPORT_UDP) in nfs4_validate_mount_data()