Lines Matching refs:nfs_server

413 	struct nfs_server *server = NFS_SB(sb);  in nfs_sb_active()
425 struct nfs_server *server = NFS_SB(sb); in nfs_sb_deactive()
437 struct nfs_server *server = NFS_SB(dentry->d_sb); in nfs_statfs()
530 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_netid()
562 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options()
597 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options()
605 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options()
623 static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mount_options()
718 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_options()
734 static void show_sessions(struct seq_file *m, struct nfs_server *server) in show_sessions()
740 static void show_sessions(struct seq_file *m, struct nfs_server *server) {} in show_sessions()
745 static void show_pnfs(struct seq_file *m, struct nfs_server *server) in show_pnfs()
754 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id()
766 static void show_pnfs(struct seq_file *m, struct nfs_server *server) in show_pnfs()
770 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id()
805 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_stats()
899 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()
1286 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1290 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1294 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1345 mnt->nfs_server.port = option; in nfs_parse_mount_options()
1462 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1469 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1477 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1521 mnt->nfs_server.addrlen = in nfs_parse_mount_options()
1524 &mnt->nfs_server.address, in nfs_parse_mount_options()
1525 sizeof(mnt->nfs_server.address)); in nfs_parse_mount_options()
1527 if (mnt->nfs_server.addrlen == 0) in nfs_parse_mount_options()
1645 protofamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1653 if (mountfamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1751 .dirpath = args->nfs_server.export_path, in nfs_request_mount()
1775 request.hostname = args->nfs_server.hostname; in nfs_request_mount()
1781 memcpy(request.sap, &args->nfs_server.address, in nfs_request_mount()
1782 args->nfs_server.addrlen); in nfs_request_mount()
1783 args->mount_server.addrlen = args->nfs_server.addrlen; in nfs_request_mount()
1802 static struct nfs_server *nfs_try_mount_request(struct nfs_mount_info *mount_info, in nfs_try_mount_request()
1809 struct nfs_server *server = ERR_PTR(-EACCES); in nfs_try_mount_request()
1879 struct nfs_server *server; in nfs_try_mount()
1987 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs23_validate_mount_data()
2048 args->nfs_server.addrlen = sizeof(data->addr); in nfs23_validate_mount_data()
2049 args->nfs_server.port = ntohs(data->addr.sin_port); in nfs23_validate_mount_data()
2054 args->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs23_validate_mount_data()
2056 args->nfs_server.hostname = kstrdup(data->hostname, GFP_KERNEL); in nfs23_validate_mount_data()
2064 if (!args->nfs_server.hostname) in nfs23_validate_mount_data()
2161 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs_validate_text_mount_data()
2175 if (args->nfs_server.protocol == XPRT_TRANSPORT_UDP) in nfs_validate_text_mount_data()
2184 nfs_set_port(sap, &args->nfs_server.port, port); in nfs_validate_text_mount_data()
2187 &args->nfs_server.hostname, in nfs_validate_text_mount_data()
2189 &args->nfs_server.export_path, in nfs_validate_text_mount_data()
2221 nfs_compare_remount_data(struct nfs_server *nfss, in nfs_compare_remount_data()
2236 data->nfs_server.port != nfss->port || in nfs_compare_remount_data()
2237 data->nfs_server.addrlen != nfss->nfs_client->cl_addrlen || in nfs_compare_remount_data()
2238 !rpc_cmp_addr((struct sockaddr *)&data->nfs_server.address, in nfs_compare_remount_data()
2249 struct nfs_server *nfss = sb->s_fs_info; in nfs_remount()
2283 data->nfs_server.port = nfss->port; in nfs_remount()
2284 data->nfs_server.addrlen = nfss->nfs_client->cl_addrlen; in nfs_remount()
2288 memcpy(&data->nfs_server.address, &nfss->nfs_client->cl_addr, in nfs_remount()
2289 data->nfs_server.addrlen); in nfs_remount()
2318 struct nfs_server *server = NFS_SB(sb); in nfs_initialise_sb()
2339 struct nfs_server *server = NFS_SB(sb); in nfs_fill_super()
2368 struct nfs_server *server = NFS_SB(sb); in nfs_clone_super()
2388 static int nfs_compare_mount_options(const struct super_block *s, const struct nfs_server *b, int f… in nfs_compare_mount_options()
2390 const struct nfs_server *a = s->s_fs_info; in nfs_compare_mount_options()
2421 struct nfs_server *server;
2428 struct nfs_server *server = sb_mntdata->server; in nfs_set_super()
2440 static int nfs_compare_super_address(struct nfs_server *server1, in nfs_compare_super_address()
2441 struct nfs_server *server2) in nfs_compare_super_address()
2485 struct nfs_server *server = sb_mntdata->server, *old = NFS_SB(sb); in nfs_compare_super()
2503 struct nfs_server *nfss = NFS_SB(sb); in nfs_get_cache_cookie()
2518 struct nfs_server *mnt_s = NFS_SB(cloned->sb); in nfs_get_cache_cookie()
2584 struct dentry *nfs_fs_mount_common(struct nfs_server *server, in nfs_fs_mount_common()
2710 struct nfs_server *server = NFS_SB(s); in nfs_kill_super()
2735 struct nfs_server *server; in nfs_xdev_mount()
2772 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs4_validate_mount_data()
2783 if (data->host_addrlen > sizeof(args->nfs_server.address)) in nfs4_validate_mount_data()
2787 args->nfs_server.addrlen = data->host_addrlen; in nfs4_validate_mount_data()
2792 args->nfs_server.port = ntohs(((struct sockaddr_in *)sap)->sin_port); in nfs4_validate_mount_data()
2809 args->nfs_server.hostname = c; in nfs4_validate_mount_data()
2814 args->nfs_server.export_path = c; in nfs4_validate_mount_data()
2836 args->nfs_server.protocol = data->proto; in nfs4_validate_mount_data()
2838 if (args->nfs_server.protocol == XPRT_TRANSPORT_UDP) in nfs4_validate_mount_data()