/fs/9p/ |
D | v9fs.c | 150 return p9_show_client_options(m, v9ses->clnt); in v9fs_show_options() 408 v9ses->clnt = p9_client_create(dev_name, data); in v9fs_session_init() 409 if (IS_ERR(v9ses->clnt)) { in v9fs_session_init() 410 rc = PTR_ERR(v9ses->clnt); in v9fs_session_init() 417 if (p9_is_proto_dotl(v9ses->clnt)) { in v9fs_session_init() 420 } else if (p9_is_proto_dotu(v9ses->clnt)) { in v9fs_session_init() 428 v9ses->maxdata = v9ses->clnt->msize - P9_IOHDRSZ; in v9fs_session_init() 457 fid = p9_client_attach(v9ses->clnt, NULL, v9ses->uname, INVALID_UID, in v9fs_session_init() 488 p9_client_destroy(v9ses->clnt); in v9fs_session_init() 503 if (v9ses->clnt) { in v9fs_session_close() [all …]
|
D | vfs_dir.c | 99 buflen = fid->clnt->msize - P9_IOHDRSZ; in v9fs_dir_readdir() 124 err = p9stat_read(fid->clnt, rdir->buf + rdir->head, in v9fs_dir_readdir() 160 buflen = fid->clnt->msize - P9_READDIRHDRSZ; in v9fs_dir_readdir_dotl() 179 err = p9dirent_read(fid->clnt, rdir->buf + rdir->head, in v9fs_dir_readdir_dotl()
|
D | vfs_file.c | 169 flock.client_id = fid->clnt->name; in v9fs_file_do_lock() 195 if (flock.client_id != fid->clnt->name) { in v9fs_file_do_lock() 197 flock.client_id = fid->clnt->name; in v9fs_file_do_lock() 230 if (flock.client_id != fid->clnt->name) in v9fs_file_do_lock() 262 glock.client_id = fid->clnt->name; in v9fs_file_getlock() 288 if (glock.client_id != fid->clnt->name) in v9fs_file_getlock()
|
D | v9fs.h | 102 struct p9_client *clnt; /* 9p client */ member
|
D | fid.c | 200 fid = p9_client_attach(v9ses->clnt, NULL, uname, uid, in v9fs_fid_lookup_with_uid()
|
/fs/lockd/ |
D | mon.c | 95 struct rpc_clnt *clnt; in nsm_mon_unmon() local 111 clnt = nsm_create(host->net, host->nodename); in nsm_mon_unmon() 112 if (IS_ERR(clnt)) { in nsm_mon_unmon() 114 "status=%ld, net=%x\n", PTR_ERR(clnt), in nsm_mon_unmon() 116 return PTR_ERR(clnt); in nsm_mon_unmon() 119 msg.rpc_proc = &clnt->cl_procinfo[proc]; in nsm_mon_unmon() 120 status = rpc_call_sync(clnt, &msg, RPC_TASK_SOFTCONN); in nsm_mon_unmon() 124 rpc_force_rebind(clnt); in nsm_mon_unmon() 125 status = rpc_call_sync(clnt, &msg, RPC_TASK_SOFTCONN); in nsm_mon_unmon() 133 rpc_shutdown_client(clnt); in nsm_mon_unmon()
|
D | host.c | 180 struct rpc_clnt *clnt; in nlm_destroy_host_locked() local 190 clnt = host->h_rpcclnt; in nlm_destroy_host_locked() 191 if (clnt != NULL) in nlm_destroy_host_locked() 192 rpc_shutdown_client(clnt); in nlm_destroy_host_locked() 430 struct rpc_clnt *clnt; in nlm_bind_host() local 441 if ((clnt = host->h_rpcclnt) != NULL) { in nlm_bind_host() 479 clnt = rpc_create(&args); in nlm_bind_host() 480 if (!IS_ERR(clnt)) in nlm_bind_host() 481 host->h_rpcclnt = clnt; in nlm_bind_host() 484 clnt = NULL; in nlm_bind_host() [all …]
|
D | clntproc.c | 264 struct rpc_clnt *clnt; in nlmclnt_call() local 282 if ((clnt = nlm_bind_host(host)) == NULL) in nlmclnt_call() 284 msg.rpc_proc = &clnt->cl_procinfo[proc]; in nlmclnt_call() 287 if ((status = rpc_call_sync(clnt, &msg, 0)) < 0) { in nlmclnt_call() 342 struct rpc_clnt *clnt; in __nlm_async_call() local 354 clnt = nlm_bind_host(host); in __nlm_async_call() 355 if (clnt == NULL) in __nlm_async_call() 357 msg->rpc_proc = &clnt->cl_procinfo[proc]; in __nlm_async_call() 358 task_setup_data.rpc_client = clnt; in __nlm_async_call()
|
/fs/nfs/ |
D | mount_clnt.c | 261 struct rpc_clnt *clnt; in nfs_umount() local 270 clnt = rpc_create(&args); in nfs_umount() 271 if (IS_ERR(clnt)) in nfs_umount() 278 msg.rpc_proc = &clnt->cl_procinfo[MOUNTPROC3_UMNT]; in nfs_umount() 280 msg.rpc_proc = &clnt->cl_procinfo[MOUNTPROC_UMNT]; in nfs_umount() 282 status = rpc_call_sync(clnt, &msg, 0); in nfs_umount() 283 rpc_shutdown_client(clnt); in nfs_umount() 292 PTR_ERR(clnt)); in nfs_umount()
|
D | nfs4namespace.c | 204 static struct rpc_clnt *nfs_find_best_sec(struct rpc_clnt *clnt, in nfs_find_best_sec() argument 228 new = rpc_clone_client_set_auth(clnt, pflavor); in nfs_find_best_sec() 261 nfs4_negotiate_security(struct rpc_clnt *clnt, struct inode *inode, in nfs4_negotiate_security() argument 281 new = nfs_find_best_sec(clnt, NFS_SERVER(inode), flavors); in nfs4_negotiate_security()
|
D | nfs4state.c | 1212 struct rpc_clnt *clnt = clp->cl_rpcclient; in nfs4_schedule_state_manager() local 1217 if (atomic_read(&clnt->cl_swapper)) { in nfs4_schedule_state_manager() 2296 struct rpc_clnt *clnt; in nfs4_discover_server_trunking() local 2302 clnt = clp->cl_rpcclient; in nfs4_discover_server_trunking() 2320 if (clnt->cl_softrtry) in nfs4_discover_server_trunking() 2336 if (clnt->cl_auth->au_flavor == RPC_AUTH_UNIX) in nfs4_discover_server_trunking() 2342 if (clnt->cl_auth->au_flavor == RPC_AUTH_UNIX) { in nfs4_discover_server_trunking() 2346 clnt = rpc_clone_client_set_auth(clnt, RPC_AUTH_UNIX); in nfs4_discover_server_trunking() 2347 if (IS_ERR(clnt)) { in nfs4_discover_server_trunking() 2348 status = PTR_ERR(clnt); in nfs4_discover_server_trunking() [all …]
|
D | client.c | 499 struct rpc_clnt *clnt = NULL; in nfs_create_rpc_client() local 531 clnt = rpc_create(&args); in nfs_create_rpc_client() 532 if (IS_ERR(clnt)) { in nfs_create_rpc_client() 534 __func__, PTR_ERR(clnt)); in nfs_create_rpc_client() 535 return PTR_ERR(clnt); in nfs_create_rpc_client() 538 clnt->cl_principal = clp->cl_principal; in nfs_create_rpc_client() 539 clp->cl_rpcclient = clnt; in nfs_create_rpc_client() 540 clnt->cl_max_connect = clp->cl_max_connect; in nfs_create_rpc_client()
|
D | file.c | 482 struct rpc_clnt *clnt = NFS_CLIENT(inode); in nfs_swap_activate() local 494 ret = rpc_clnt_swap_activate(clnt); in nfs_swap_activate() 499 rpc_clnt_swap_deactivate(clnt); in nfs_swap_activate() 515 struct rpc_clnt *clnt = NFS_CLIENT(inode); in nfs_swap_deactivate() local 518 rpc_clnt_swap_deactivate(clnt); in nfs_swap_deactivate()
|
D | nfs3proc.c | 32 nfs3_rpc_wrapper(struct rpc_clnt *clnt, struct rpc_message *msg, int flags) in nfs3_rpc_wrapper() argument 36 res = rpc_call_sync(clnt, msg, flags); in nfs3_rpc_wrapper() 46 #define rpc_call_sync(clnt, msg, flags) nfs3_rpc_wrapper(clnt, msg, flags) argument 895 struct rpc_clnt **clnt) in nfs3_proc_write_setup() argument 917 struct rpc_clnt **clnt) in nfs3_proc_commit_setup() argument
|
D | nfs4proc.c | 1140 static int nfs4_do_call_sync(struct rpc_clnt *clnt, in nfs4_do_call_sync() argument 1154 .rpc_client = clnt, in nfs4_do_call_sync() 1164 static int nfs4_call_sync_sequence(struct rpc_clnt *clnt, in nfs4_call_sync_sequence() argument 1174 return nfs4_do_call_sync(clnt, server, msg, args, res, task_flags); in nfs4_call_sync_sequence() 1178 int nfs4_call_sync(struct rpc_clnt *clnt, in nfs4_call_sync() argument 1186 return nfs4_call_sync_sequence(clnt, server, msg, args, res); in nfs4_call_sync() 4412 static int _nfs4_proc_lookup(struct rpc_clnt *clnt, struct inode *dir, in _nfs4_proc_lookup() argument 4448 status = nfs4_do_call_sync(clnt, server, &msg, in _nfs4_proc_lookup() 4462 static int nfs4_proc_lookup_common(struct rpc_clnt **clnt, struct inode *dir, in nfs4_proc_lookup_common() argument 4469 struct rpc_clnt *client = *clnt; in nfs4_proc_lookup_common() [all …]
|
D | nfs2xdr.c | 80 static struct user_namespace *rpc_userns(const struct rpc_clnt *clnt) in rpc_userns() argument 82 if (clnt && clnt->cl_cred) in rpc_userns() 83 return clnt->cl_cred->user_ns; in rpc_userns()
|
D | nfs4client.c | 1317 struct rpc_clnt *clnt = server->client; in nfs4_update_server() local 1330 error = rpc_switch_client_transport(clnt, &xargs, clnt->cl_timeout); in nfs4_update_server() 1334 error = rpc_localaddr(clnt, localaddr, sizeof(address)); in nfs4_update_server() 1344 clp->cl_proto, clnt->cl_timeout, in nfs4_update_server()
|
D | internal.h | 298 int nfs_initiate_pgio(struct rpc_clnt *clnt, struct nfs_pgio_header *hdr, 507 extern int nfs_initiate_commit(struct rpc_clnt *clnt, 654 extern void nfs4_test_session_trunk(struct rpc_clnt *clnt,
|
D | proc.c | 638 struct rpc_clnt **clnt) in nfs_proc_write_setup() argument 652 struct rpc_clnt **clnt) in nfs_proc_commit_setup() argument
|
D | nfs3xdr.c | 110 static struct user_namespace *rpc_userns(const struct rpc_clnt *clnt) in rpc_userns() argument 112 if (clnt && clnt->cl_cred) in rpc_userns() 113 return clnt->cl_cred->user_ns; in rpc_userns()
|
D | pagelist.c | 750 int nfs_initiate_pgio(struct rpc_clnt *clnt, struct nfs_pgio_header *hdr, in nfs_initiate_pgio() argument 761 .rpc_client = clnt, in nfs_initiate_pgio()
|
D | nfs4_fs.h | 72 void (*session_trunk)(struct rpc_clnt *clnt,
|
D | write.c | 1678 int nfs_initiate_commit(struct rpc_clnt *clnt, struct nfs_commit_data *data, in nfs_initiate_commit() argument 1692 .rpc_client = clnt, in nfs_initiate_commit()
|
/fs/nfsd/ |
D | nfs4callback.c | 1326 struct rpc_clnt *clnt; in nfsd4_run_cb_work() local 1339 clnt = clp->cl_cb_client; in nfsd4_run_cb_work() 1340 if (!clnt) { in nfsd4_run_cb_work() 1357 rpc_call_async(clnt, &cb->cb_msg, RPC_TASK_SOFT | flags, in nfsd4_run_cb_work()
|
/fs/nfs/flexfilelayout/ |
D | flexfilelayout.c | 2013 struct rpc_clnt *clnt; in ff_layout_cancel_io() local 2027 clnt = ds_clp->cl_rpcclient; in ff_layout_cancel_io() 2028 if (!clnt) in ff_layout_cancel_io() 2030 if (!rpc_cancel_tasks(clnt, -EAGAIN, ff_layout_match_io, lseg)) in ff_layout_cancel_io() 2032 rpc_clnt_disconnect(clnt); in ff_layout_cancel_io()
|