Lines Matching refs:nfs_server
408 struct nfs_server *server = NFS_SB(sb); in nfs_sb_active()
417 struct nfs_server *server = NFS_SB(sb); in nfs_sb_deactive()
429 struct nfs_server *server = NFS_SB(dentry->d_sb); in nfs_statfs()
521 static void nfs_show_mountd_netid(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_netid()
560 static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mountd_options()
595 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options()
603 static void nfs_show_nfsv4_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_nfsv4_options()
621 static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss, in nfs_show_mount_options()
716 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_options()
732 static void show_sessions(struct seq_file *m, struct nfs_server *server) in show_sessions()
738 static void show_sessions(struct seq_file *m, struct nfs_server *server) {} in show_sessions()
743 static void show_pnfs(struct seq_file *m, struct nfs_server *server) in show_pnfs()
752 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id()
764 static void show_pnfs(struct seq_file *m, struct nfs_server *server) in show_pnfs()
768 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id()
803 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_stats()
896 struct nfs_server *server; in nfs_umount_begin()
921 data->nfs_server.port = NFS_UNSPEC_PORT; in nfs_alloc_parsed_mount_data()
922 data->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_alloc_parsed_mount_data()
938 kfree(data->nfs_server.export_path); in nfs_free_parsed_mount_data()
939 kfree(data->nfs_server.hostname); in nfs_free_parsed_mount_data()
988 switch (mnt->nfs_server.protocol) { in nfs_validate_transport_protocol()
994 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_validate_transport_protocol()
1009 switch (mnt->nfs_server.protocol) { in nfs_set_mount_transport_protocol()
1213 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1217 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1221 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1272 mnt->nfs_server.port = option; in nfs_parse_mount_options()
1388 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1394 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1399 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1441 mnt->nfs_server.addrlen = in nfs_parse_mount_options()
1444 &mnt->nfs_server.address, in nfs_parse_mount_options()
1445 sizeof(mnt->nfs_server.address)); in nfs_parse_mount_options()
1447 if (mnt->nfs_server.addrlen == 0) in nfs_parse_mount_options()
1565 protofamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1573 if (mountfamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1711 .dirpath = args->nfs_server.export_path, in nfs_request_mount()
1735 request.hostname = args->nfs_server.hostname; in nfs_request_mount()
1741 memcpy(request.sap, &args->nfs_server.address, in nfs_request_mount()
1742 args->nfs_server.addrlen); in nfs_request_mount()
1743 args->mount_server.addrlen = args->nfs_server.addrlen; in nfs_request_mount()
1767 struct nfs_server *server; in nfs_try_mount()
1878 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs23_validate_mount_data()
1933 args->nfs_server.addrlen = sizeof(data->addr); in nfs23_validate_mount_data()
1934 args->nfs_server.port = ntohs(data->addr.sin_port); in nfs23_validate_mount_data()
1939 args->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs23_validate_mount_data()
1941 args->nfs_server.hostname = kstrdup(data->hostname, GFP_KERNEL); in nfs23_validate_mount_data()
1948 if (!args->nfs_server.hostname) in nfs23_validate_mount_data()
2056 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs_validate_text_mount_data()
2077 nfs_set_port(sap, &args->nfs_server.port, port); in nfs_validate_text_mount_data()
2083 &args->nfs_server.hostname, in nfs_validate_text_mount_data()
2085 &args->nfs_server.export_path, in nfs_validate_text_mount_data()
2104 nfs_compare_remount_data(struct nfs_server *nfss, in nfs_compare_remount_data()
2117 data->nfs_server.port != nfss->port || in nfs_compare_remount_data()
2118 data->nfs_server.addrlen != nfss->nfs_client->cl_addrlen || in nfs_compare_remount_data()
2119 !rpc_cmp_addr((struct sockaddr *)&data->nfs_server.address, in nfs_compare_remount_data()
2130 struct nfs_server *nfss = sb->s_fs_info; in nfs_remount()
2164 data->nfs_server.port = nfss->port; in nfs_remount()
2165 data->nfs_server.addrlen = nfss->nfs_client->cl_addrlen; in nfs_remount()
2166 memcpy(&data->nfs_server.address, &nfss->nfs_client->cl_addr, in nfs_remount()
2167 data->nfs_server.addrlen); in nfs_remount()
2196 struct nfs_server *server = NFS_SB(sb); in nfs_initialise_sb()
2219 struct nfs_server *server = NFS_SB(sb); in nfs_fill_super()
2246 struct nfs_server *server = NFS_SB(sb); in nfs_clone_super()
2265 static int nfs_compare_mount_options(const struct super_block *s, const struct nfs_server *b, int f… in nfs_compare_mount_options()
2267 const struct nfs_server *a = s->s_fs_info; in nfs_compare_mount_options()
2297 struct nfs_server *server;
2304 struct nfs_server *server = sb_mntdata->server; in nfs_set_super()
2316 static int nfs_compare_super_address(struct nfs_server *server1, in nfs_compare_super_address()
2317 struct nfs_server *server2) in nfs_compare_super_address()
2356 struct nfs_server *server = sb_mntdata->server, *old = NFS_SB(sb); in nfs_compare_super()
2374 struct nfs_server *nfss = NFS_SB(sb); in nfs_get_cache_cookie()
2389 struct nfs_server *mnt_s = NFS_SB(cloned->sb); in nfs_get_cache_cookie()
2409 static int nfs_bdi_register(struct nfs_server *server) in nfs_bdi_register()
2431 struct dentry *nfs_fs_mount_common(struct nfs_server *server, in nfs_fs_mount_common()
2552 struct nfs_server *server = NFS_SB(s); in nfs_put_super()
2563 struct nfs_server *server = NFS_SB(s); in nfs_kill_super()
2584 struct nfs_server *server; in nfs_xdev_mount()
2621 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs4_validate_mount_data()
2632 if (data->host_addrlen > sizeof(args->nfs_server.address)) in nfs4_validate_mount_data()
2636 args->nfs_server.addrlen = data->host_addrlen; in nfs4_validate_mount_data()
2641 args->nfs_server.port = ntohs(((struct sockaddr_in *)sap)->sin_port); in nfs4_validate_mount_data()
2656 args->nfs_server.hostname = c; in nfs4_validate_mount_data()
2661 args->nfs_server.export_path = c; in nfs4_validate_mount_data()
2683 args->nfs_server.protocol = data->proto; in nfs4_validate_mount_data()