Lines Matching refs:nfs_server
420 struct nfs_server *server = NFS_SB(sb); in nfs_sb_active()
432 struct nfs_server *server = NFS_SB(sb); in nfs_sb_deactive()
444 struct nfs_server *server = NFS_SB(dentry->d_sb); in nfs_statfs()
535 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_netid()
567 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options()
602 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options()
610 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options()
628 static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mount_options()
728 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_options()
743 static void show_lease(struct seq_file *m, struct nfs_server *server) in show_lease()
754 static void show_sessions(struct seq_file *m, struct nfs_server *server) in show_sessions()
760 static void show_sessions(struct seq_file *m, struct nfs_server *server) {} in show_sessions()
765 static void show_pnfs(struct seq_file *m, struct nfs_server *server) in show_pnfs()
774 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id()
786 static void show_pnfs(struct seq_file *m, struct nfs_server *server) in show_pnfs()
790 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id()
825 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_stats()
920 struct nfs_server *server; in nfs_umount_begin()
947 data->nfs_server.port = NFS_UNSPEC_PORT; in nfs_alloc_parsed_mount_data()
948 data->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_alloc_parsed_mount_data()
963 kfree(data->nfs_server.export_path); in nfs_free_parsed_mount_data()
964 kfree(data->nfs_server.hostname); in nfs_free_parsed_mount_data()
1013 switch (mnt->nfs_server.protocol) { in nfs_validate_transport_protocol()
1019 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_validate_transport_protocol()
1034 switch (mnt->nfs_server.protocol) { in nfs_set_mount_transport_protocol()
1302 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1306 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1310 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1361 mnt->nfs_server.port = option; in nfs_parse_mount_options()
1478 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1485 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1493 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1537 mnt->nfs_server.addrlen = in nfs_parse_mount_options()
1540 &mnt->nfs_server.address, in nfs_parse_mount_options()
1541 sizeof(mnt->nfs_server.address)); in nfs_parse_mount_options()
1543 if (mnt->nfs_server.addrlen == 0) in nfs_parse_mount_options()
1571 mnt->nfs_server.nconnect = option; in nfs_parse_mount_options()
1666 protofamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1674 if (mountfamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1771 .dirpath = args->nfs_server.export_path, in nfs_request_mount()
1795 request.hostname = args->nfs_server.hostname; in nfs_request_mount()
1801 memcpy(request.sap, &args->nfs_server.address, in nfs_request_mount()
1802 args->nfs_server.addrlen); in nfs_request_mount()
1803 args->mount_server.addrlen = args->nfs_server.addrlen; in nfs_request_mount()
1822 static struct nfs_server *nfs_try_mount_request(struct nfs_mount_info *mount_info, in nfs_try_mount_request()
1829 struct nfs_server *server = ERR_PTR(-EACCES); in nfs_try_mount_request()
1899 struct nfs_server *server; in nfs_try_mount()
2012 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs23_validate_mount_data()
2073 args->nfs_server.addrlen = sizeof(data->addr); in nfs23_validate_mount_data()
2074 args->nfs_server.port = ntohs(data->addr.sin_port); in nfs23_validate_mount_data()
2080 args->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs23_validate_mount_data()
2082 args->nfs_server.hostname = kstrdup(data->hostname, GFP_KERNEL); in nfs23_validate_mount_data()
2090 if (!args->nfs_server.hostname) in nfs23_validate_mount_data()
2182 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs_validate_text_mount_data()
2192 if (args->nfs_server.protocol == XPRT_TRANSPORT_RDMA) in nfs_validate_text_mount_data()
2199 if (args->nfs_server.protocol == XPRT_TRANSPORT_UDP) in nfs_validate_text_mount_data()
2207 if (args->nfs_server.protocol == XPRT_TRANSPORT_RDMA) in nfs_validate_text_mount_data()
2211 nfs_set_port(sap, &args->nfs_server.port, port); in nfs_validate_text_mount_data()
2214 &args->nfs_server.hostname, in nfs_validate_text_mount_data()
2216 &args->nfs_server.export_path, in nfs_validate_text_mount_data()
2248 nfs_compare_remount_data(struct nfs_server *nfss, in nfs_compare_remount_data()
2264 data->nfs_server.port != nfss->port || in nfs_compare_remount_data()
2265 data->nfs_server.addrlen != nfss->nfs_client->cl_addrlen || in nfs_compare_remount_data()
2266 !rpc_cmp_addr((struct sockaddr *)&data->nfs_server.address, in nfs_compare_remount_data()
2277 struct nfs_server *nfss = sb->s_fs_info; in nfs_remount()
2311 data->nfs_server.port = nfss->port; in nfs_remount()
2312 data->nfs_server.addrlen = nfss->nfs_client->cl_addrlen; in nfs_remount()
2316 memcpy(&data->nfs_server.address, &nfss->nfs_client->cl_addr, in nfs_remount()
2317 data->nfs_server.addrlen); in nfs_remount()
2348 struct nfs_server *server = NFS_SB(sb); in nfs_initialise_sb()
2369 struct nfs_server *server = NFS_SB(sb); in nfs_fill_super()
2407 struct nfs_server *server = NFS_SB(sb); in nfs_clone_super()
2436 static int nfs_compare_mount_options(const struct super_block *s, const struct nfs_server *b, int f… in nfs_compare_mount_options()
2438 const struct nfs_server *a = s->s_fs_info; in nfs_compare_mount_options()
2468 struct nfs_server *server;
2475 struct nfs_server *server = sb_mntdata->server; in nfs_set_super()
2487 static int nfs_compare_super_address(struct nfs_server *server1, in nfs_compare_super_address()
2488 struct nfs_server *server2) in nfs_compare_super_address()
2529 static int nfs_compare_userns(const struct nfs_server *old, in nfs_compare_userns()
2530 const struct nfs_server *new) in nfs_compare_userns()
2547 struct nfs_server *server = sb_mntdata->server, *old = NFS_SB(sb); in nfs_compare_super()
2567 struct nfs_server *nfss = NFS_SB(sb); in nfs_get_cache_cookie()
2582 struct nfs_server *mnt_s = NFS_SB(cloned->sb); in nfs_get_cache_cookie()
2655 struct dentry *nfs_fs_mount_common(struct nfs_server *server, in nfs_fs_mount_common()
2781 struct nfs_server *server = NFS_SB(s); in nfs_kill_super()
2806 struct nfs_server *server; in nfs_xdev_mount()
2843 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs4_validate_mount_data()
2854 if (data->host_addrlen > sizeof(args->nfs_server.address)) in nfs4_validate_mount_data()
2858 args->nfs_server.addrlen = data->host_addrlen; in nfs4_validate_mount_data()
2863 args->nfs_server.port = ntohs(((struct sockaddr_in *)sap)->sin_port); in nfs4_validate_mount_data()
2880 args->nfs_server.hostname = c; in nfs4_validate_mount_data()
2885 args->nfs_server.export_path = c; in nfs4_validate_mount_data()
2907 args->nfs_server.protocol = data->proto; in nfs4_validate_mount_data()
2909 if (args->nfs_server.protocol == XPRT_TRANSPORT_UDP) in nfs4_validate_mount_data()