Lines Matching refs:nfs_server

411 	struct nfs_server *server = NFS_SB(sb);  in nfs_sb_active()
423 struct nfs_server *server = NFS_SB(sb); in nfs_sb_deactive()
435 struct nfs_server *server = NFS_SB(dentry->d_sb); in nfs_statfs()
528 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()
723 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_options()
739 static void show_sessions(struct seq_file *m, struct nfs_server *server) in show_sessions()
745 static void show_sessions(struct seq_file *m, struct nfs_server *server) {} in show_sessions()
750 static void show_pnfs(struct seq_file *m, struct nfs_server *server) in show_pnfs()
759 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id()
771 static void show_pnfs(struct seq_file *m, struct nfs_server *server) in show_pnfs()
775 static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) in show_implementation_id()
810 struct nfs_server *nfss = NFS_SB(root->d_sb); in nfs_show_stats()
904 struct nfs_server *server; in nfs_umount_begin()
929 data->nfs_server.port = NFS_UNSPEC_PORT; in nfs_alloc_parsed_mount_data()
930 data->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_alloc_parsed_mount_data()
945 kfree(data->nfs_server.export_path); in nfs_free_parsed_mount_data()
946 kfree(data->nfs_server.hostname); in nfs_free_parsed_mount_data()
995 switch (mnt->nfs_server.protocol) { in nfs_validate_transport_protocol()
1001 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_validate_transport_protocol()
1016 switch (mnt->nfs_server.protocol) { in nfs_set_mount_transport_protocol()
1276 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1280 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1284 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1335 mnt->nfs_server.port = option; in nfs_parse_mount_options()
1451 mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs_parse_mount_options()
1457 mnt->nfs_server.protocol = XPRT_TRANSPORT_TCP; in nfs_parse_mount_options()
1462 mnt->nfs_server.protocol = XPRT_TRANSPORT_RDMA; in nfs_parse_mount_options()
1504 mnt->nfs_server.addrlen = in nfs_parse_mount_options()
1507 &mnt->nfs_server.address, in nfs_parse_mount_options()
1508 sizeof(mnt->nfs_server.address)); in nfs_parse_mount_options()
1510 if (mnt->nfs_server.addrlen == 0) in nfs_parse_mount_options()
1628 protofamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1636 if (mountfamily != mnt->nfs_server.address.ss_family) in nfs_parse_mount_options()
1722 .dirpath = args->nfs_server.export_path, in nfs_request_mount()
1746 request.hostname = args->nfs_server.hostname; in nfs_request_mount()
1752 memcpy(request.sap, &args->nfs_server.address, in nfs_request_mount()
1753 args->nfs_server.addrlen); in nfs_request_mount()
1754 args->mount_server.addrlen = args->nfs_server.addrlen; in nfs_request_mount()
1773 static struct nfs_server *nfs_try_mount_request(struct nfs_mount_info *mount_info, in nfs_try_mount_request()
1780 struct nfs_server *server = ERR_PTR(-EACCES); in nfs_try_mount_request()
1850 struct nfs_server *server; in nfs_try_mount()
1958 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs23_validate_mount_data()
2016 args->nfs_server.addrlen = sizeof(data->addr); in nfs23_validate_mount_data()
2017 args->nfs_server.port = ntohs(data->addr.sin_port); in nfs23_validate_mount_data()
2022 args->nfs_server.protocol = XPRT_TRANSPORT_UDP; in nfs23_validate_mount_data()
2024 args->nfs_server.hostname = kstrdup(data->hostname, GFP_KERNEL); in nfs23_validate_mount_data()
2032 if (!args->nfs_server.hostname) in nfs23_validate_mount_data()
2129 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs_validate_text_mount_data()
2143 if (args->nfs_server.protocol == XPRT_TRANSPORT_UDP) in nfs_validate_text_mount_data()
2152 nfs_set_port(sap, &args->nfs_server.port, port); in nfs_validate_text_mount_data()
2155 &args->nfs_server.hostname, in nfs_validate_text_mount_data()
2157 &args->nfs_server.export_path, in nfs_validate_text_mount_data()
2189 nfs_compare_remount_data(struct nfs_server *nfss, in nfs_compare_remount_data()
2204 data->nfs_server.port != nfss->port || in nfs_compare_remount_data()
2205 data->nfs_server.addrlen != nfss->nfs_client->cl_addrlen || in nfs_compare_remount_data()
2206 !rpc_cmp_addr((struct sockaddr *)&data->nfs_server.address, in nfs_compare_remount_data()
2217 struct nfs_server *nfss = sb->s_fs_info; in nfs_remount()
2251 data->nfs_server.port = nfss->port; in nfs_remount()
2252 data->nfs_server.addrlen = nfss->nfs_client->cl_addrlen; in nfs_remount()
2256 memcpy(&data->nfs_server.address, &nfss->nfs_client->cl_addr, in nfs_remount()
2257 data->nfs_server.addrlen); in nfs_remount()
2286 struct nfs_server *server = NFS_SB(sb); in nfs_initialise_sb()
2309 struct nfs_server *server = NFS_SB(sb); in nfs_fill_super()
2336 struct nfs_server *server = NFS_SB(sb); in nfs_clone_super()
2355 static int nfs_compare_mount_options(const struct super_block *s, const struct nfs_server *b, int f… in nfs_compare_mount_options()
2357 const struct nfs_server *a = s->s_fs_info; in nfs_compare_mount_options()
2388 struct nfs_server *server;
2395 struct nfs_server *server = sb_mntdata->server; in nfs_set_super()
2407 static int nfs_compare_super_address(struct nfs_server *server1, in nfs_compare_super_address()
2408 struct nfs_server *server2) in nfs_compare_super_address()
2447 struct nfs_server *server = sb_mntdata->server, *old = NFS_SB(sb); in nfs_compare_super()
2465 struct nfs_server *nfss = NFS_SB(sb); in nfs_get_cache_cookie()
2480 struct nfs_server *mnt_s = NFS_SB(cloned->sb); in nfs_get_cache_cookie()
2500 static int nfs_bdi_register(struct nfs_server *server) in nfs_bdi_register()
2536 struct dentry *nfs_fs_mount_common(struct nfs_server *server, in nfs_fs_mount_common()
2658 struct nfs_server *server = NFS_SB(s); in nfs_kill_super()
2683 struct nfs_server *server; in nfs_xdev_mount()
2720 struct sockaddr *sap = (struct sockaddr *)&args->nfs_server.address; in nfs4_validate_mount_data()
2731 if (data->host_addrlen > sizeof(args->nfs_server.address)) in nfs4_validate_mount_data()
2735 args->nfs_server.addrlen = data->host_addrlen; in nfs4_validate_mount_data()
2740 args->nfs_server.port = ntohs(((struct sockaddr_in *)sap)->sin_port); in nfs4_validate_mount_data()
2757 args->nfs_server.hostname = c; in nfs4_validate_mount_data()
2762 args->nfs_server.export_path = c; in nfs4_validate_mount_data()
2784 args->nfs_server.protocol = data->proto; in nfs4_validate_mount_data()
2786 if (args->nfs_server.protocol == XPRT_TRANSPORT_UDP) in nfs4_validate_mount_data()