Lines Matching refs:calldata
860 static void nfs41_call_sync_prepare(struct rpc_task *task, void *calldata) in nfs41_call_sync_prepare() argument
862 struct nfs4_call_sync_data *data = calldata; in nfs41_call_sync_prepare()
870 static void nfs41_call_sync_done(struct rpc_task *task, void *calldata) in nfs41_call_sync_done() argument
872 struct nfs4_call_sync_data *data = calldata; in nfs41_call_sync_done()
902 static void nfs40_call_sync_prepare(struct rpc_task *task, void *calldata) in nfs40_call_sync_prepare() argument
904 struct nfs4_call_sync_data *data = calldata; in nfs40_call_sync_prepare()
909 static void nfs40_call_sync_done(struct rpc_task *task, void *calldata) in nfs40_call_sync_done() argument
911 struct nfs4_call_sync_data *data = calldata; in nfs40_call_sync_done()
1872 static void nfs4_open_confirm_prepare(struct rpc_task *task, void *calldata) in nfs4_open_confirm_prepare() argument
1874 struct nfs4_opendata *data = calldata; in nfs4_open_confirm_prepare()
1880 static void nfs4_open_confirm_done(struct rpc_task *task, void *calldata) in nfs4_open_confirm_done() argument
1882 struct nfs4_opendata *data = calldata; in nfs4_open_confirm_done()
1895 static void nfs4_open_confirm_release(void *calldata) in nfs4_open_confirm_release() argument
1897 struct nfs4_opendata *data = calldata; in nfs4_open_confirm_release()
1962 static void nfs4_open_prepare(struct rpc_task *task, void *calldata) in nfs4_open_prepare() argument
1964 struct nfs4_opendata *data = calldata; in nfs4_open_prepare()
2024 static void nfs4_open_done(struct rpc_task *task, void *calldata) in nfs4_open_done() argument
2026 struct nfs4_opendata *data = calldata; in nfs4_open_done()
2055 static void nfs4_open_release(void *calldata) in nfs4_open_release() argument
2057 struct nfs4_opendata *data = calldata; in nfs4_open_release()
2774 struct nfs4_closedata *calldata = data; in nfs4_free_closedata() local
2775 struct nfs4_state_owner *sp = calldata->state->owner; in nfs4_free_closedata()
2776 struct super_block *sb = calldata->state->inode->i_sb; in nfs4_free_closedata()
2778 if (calldata->roc) in nfs4_free_closedata()
2779 pnfs_roc_release(calldata->state->inode); in nfs4_free_closedata()
2780 nfs4_put_open_state(calldata->state); in nfs4_free_closedata()
2781 nfs_free_seqid(calldata->arg.seqid); in nfs4_free_closedata()
2784 kfree(calldata); in nfs4_free_closedata()
2789 struct nfs4_closedata *calldata = data; in nfs4_close_done() local
2790 struct nfs4_state *state = calldata->state; in nfs4_close_done()
2791 struct nfs_server *server = NFS_SERVER(calldata->inode); in nfs4_close_done()
2795 if (!nfs4_sequence_done(task, &calldata->res.seq_res)) in nfs4_close_done()
2797 trace_nfs4_close(state, &calldata->arg, &calldata->res, task->tk_status); in nfs4_close_done()
2803 res_stateid = &calldata->res.stateid; in nfs4_close_done()
2804 if (calldata->roc) in nfs4_close_done()
2806 calldata->roc_barrier); in nfs4_close_done()
2807 renew_lease(server, calldata->timestamp); in nfs4_close_done()
2814 if (!nfs4_stateid_match(&calldata->arg.stateid, in nfs4_close_done()
2819 if (calldata->arg.fmode == 0) in nfs4_close_done()
2827 nfs_clear_open_stateid(state, &calldata->arg.stateid, in nfs4_close_done()
2828 res_stateid, calldata->arg.fmode); in nfs4_close_done()
2830 nfs_release_seqid(calldata->arg.seqid); in nfs4_close_done()
2831 nfs_refresh_inode(calldata->inode, calldata->res.fattr); in nfs4_close_done()
2837 struct nfs4_closedata *calldata = data; in nfs4_close_prepare() local
2838 struct nfs4_state *state = calldata->state; in nfs4_close_prepare()
2839 struct inode *inode = calldata->inode; in nfs4_close_prepare()
2844 if (nfs_wait_on_sequence(calldata->arg.seqid, task) != 0) in nfs4_close_prepare()
2852 nfs4_stateid_copy(&calldata->arg.stateid, &state->open_stateid); in nfs4_close_prepare()
2854 calldata->arg.fmode = 0; in nfs4_close_prepare()
2859 calldata->arg.fmode |= FMODE_READ; in nfs4_close_prepare()
2863 calldata->arg.fmode |= FMODE_WRITE; in nfs4_close_prepare()
2864 if (calldata->arg.fmode != (FMODE_READ|FMODE_WRITE)) in nfs4_close_prepare()
2867 calldata->arg.fmode |= FMODE_READ|FMODE_WRITE; in nfs4_close_prepare()
2879 nfs_release_seqid(calldata->arg.seqid); in nfs4_close_prepare()
2883 if (calldata->arg.fmode == 0) in nfs4_close_prepare()
2885 if (calldata->roc) in nfs4_close_prepare()
2886 pnfs_roc_get_barrier(inode, &calldata->roc_barrier); in nfs4_close_prepare()
2888 calldata->arg.share_access = in nfs4_close_prepare()
2890 calldata->arg.fmode, 0); in nfs4_close_prepare()
2892 nfs_fattr_init(calldata->res.fattr); in nfs4_close_prepare()
2893 calldata->timestamp = jiffies; in nfs4_close_prepare()
2895 &calldata->arg.seq_args, in nfs4_close_prepare()
2896 &calldata->res.seq_res, in nfs4_close_prepare()
2898 nfs_release_seqid(calldata->arg.seqid); in nfs4_close_prepare()
2904 nfs4_sequence_done(task, &calldata->res.seq_res); in nfs4_close_prepare()
2935 struct nfs4_closedata *calldata; in nfs4_do_close() local
2954 calldata = kzalloc(sizeof(*calldata), gfp_mask); in nfs4_do_close()
2955 if (calldata == NULL) in nfs4_do_close()
2957 nfs4_init_sequence(&calldata->arg.seq_args, &calldata->res.seq_res, 1); in nfs4_do_close()
2958 calldata->inode = state->inode; in nfs4_do_close()
2959 calldata->state = state; in nfs4_do_close()
2960 calldata->arg.fh = NFS_FH(state->inode); in nfs4_do_close()
2963 calldata->arg.seqid = alloc_seqid(&state->owner->so_seqid, gfp_mask); in nfs4_do_close()
2964 if (IS_ERR(calldata->arg.seqid)) in nfs4_do_close()
2966 calldata->arg.fmode = 0; in nfs4_do_close()
2967 calldata->arg.bitmask = server->cache_consistency_bitmask; in nfs4_do_close()
2968 calldata->res.fattr = &calldata->fattr; in nfs4_do_close()
2969 calldata->res.seqid = calldata->arg.seqid; in nfs4_do_close()
2970 calldata->res.server = server; in nfs4_do_close()
2971 calldata->roc = nfs4_roc(state->inode); in nfs4_do_close()
2972 nfs_sb_active(calldata->inode->i_sb); in nfs4_do_close()
2974 msg.rpc_argp = &calldata->arg; in nfs4_do_close()
2975 msg.rpc_resp = &calldata->res; in nfs4_do_close()
2976 task_setup_data.callback_data = calldata; in nfs4_do_close()
2986 kfree(calldata); in nfs4_do_close()
4531 static void nfs4_renew_release(void *calldata) in nfs4_renew_release() argument
4533 struct nfs4_renewdata *data = calldata; in nfs4_renew_release()
4542 static void nfs4_renew_done(struct rpc_task *task, void *calldata) in nfs4_renew_done() argument
4544 struct nfs4_renewdata *data = calldata; in nfs4_renew_done()
5192 static void nfs4_setclientid_done(struct rpc_task *task, void *calldata) in nfs4_setclientid_done() argument
5194 struct nfs4_setclientid *sc = calldata; in nfs4_setclientid_done()
5322 static void nfs4_delegreturn_done(struct rpc_task *task, void *calldata) in nfs4_delegreturn_done() argument
5324 struct nfs4_delegreturndata *data = calldata; in nfs4_delegreturn_done()
5353 static void nfs4_delegreturn_release(void *calldata) in nfs4_delegreturn_release() argument
5355 struct nfs4_delegreturndata *data = calldata; in nfs4_delegreturn_release()
5363 kfree(calldata); in nfs4_delegreturn_release()
5578 struct nfs4_unlockdata *calldata = data; in nfs4_locku_release_calldata() local
5579 nfs_free_seqid(calldata->arg.seqid); in nfs4_locku_release_calldata()
5580 nfs4_put_lock_state(calldata->lsp); in nfs4_locku_release_calldata()
5581 put_nfs_open_context(calldata->ctx); in nfs4_locku_release_calldata()
5582 kfree(calldata); in nfs4_locku_release_calldata()
5587 struct nfs4_unlockdata *calldata = data; in nfs4_locku_done() local
5589 if (!nfs4_sequence_done(task, &calldata->res.seq_res)) in nfs4_locku_done()
5593 renew_lease(calldata->server, calldata->timestamp); in nfs4_locku_done()
5594 do_vfs_lock(calldata->lsp->ls_state->inode, &calldata->fl); in nfs4_locku_done()
5595 if (nfs4_update_lock_stateid(calldata->lsp, in nfs4_locku_done()
5596 &calldata->res.stateid)) in nfs4_locku_done()
5602 if (!nfs4_stateid_match(&calldata->arg.stateid, in nfs4_locku_done()
5603 &calldata->lsp->ls_stateid)) in nfs4_locku_done()
5607 if (nfs4_async_handle_error(task, calldata->server, in nfs4_locku_done()
5611 nfs_release_seqid(calldata->arg.seqid); in nfs4_locku_done()
5616 struct nfs4_unlockdata *calldata = data; in nfs4_locku_prepare() local
5618 if (nfs_wait_on_sequence(calldata->arg.seqid, task) != 0) in nfs4_locku_prepare()
5620 nfs4_stateid_copy(&calldata->arg.stateid, &calldata->lsp->ls_stateid); in nfs4_locku_prepare()
5621 if (test_bit(NFS_LOCK_INITIALIZED, &calldata->lsp->ls_flags) == 0) { in nfs4_locku_prepare()
5625 calldata->timestamp = jiffies; in nfs4_locku_prepare()
5626 if (nfs4_setup_sequence(calldata->server, in nfs4_locku_prepare()
5627 &calldata->arg.seq_args, in nfs4_locku_prepare()
5628 &calldata->res.seq_res, in nfs4_locku_prepare()
5630 nfs_release_seqid(calldata->arg.seqid); in nfs4_locku_prepare()
5635 nfs4_sequence_done(task, &calldata->res.seq_res); in nfs4_locku_prepare()
5783 static void nfs4_lock_prepare(struct rpc_task *task, void *calldata) in nfs4_lock_prepare() argument
5785 struct nfs4_lockdata *data = calldata; in nfs4_lock_prepare()
5825 static void nfs4_lock_done(struct rpc_task *task, void *calldata) in nfs4_lock_done() argument
5827 struct nfs4_lockdata *data = calldata; in nfs4_lock_done()
5869 static void nfs4_lock_release(void *calldata) in nfs4_lock_release() argument
5871 struct nfs4_lockdata *data = calldata; in nfs4_lock_release()
6208 static void nfs4_release_lockowner_prepare(struct rpc_task *task, void *calldata) in nfs4_release_lockowner_prepare() argument
6210 struct nfs_release_lockowner_data *data = calldata; in nfs4_release_lockowner_prepare()
6218 static void nfs4_release_lockowner_done(struct rpc_task *task, void *calldata) in nfs4_release_lockowner_done() argument
6220 struct nfs_release_lockowner_data *data = calldata; in nfs4_release_lockowner_done()
6241 static void nfs4_release_lockowner_release(void *calldata) in nfs4_release_lockowner_release() argument
6243 struct nfs_release_lockowner_data *data = calldata; in nfs4_release_lockowner_release()
6245 kfree(calldata); in nfs4_release_lockowner_release()
7233 void *calldata) in nfs4_get_lease_time_prepare() argument
7236 (struct nfs4_get_lease_time_data *)calldata; in nfs4_get_lease_time_prepare()
7252 static void nfs4_get_lease_time_done(struct rpc_task *task, void *calldata) in nfs4_get_lease_time_done() argument
7255 (struct nfs4_get_lease_time_data *)calldata; in nfs4_get_lease_time_done()
7556 struct nfs4_sequence_data *calldata = data; in nfs41_sequence_release() local
7557 struct nfs_client *clp = calldata->clp; in nfs41_sequence_release()
7562 kfree(calldata); in nfs41_sequence_release()
7579 struct nfs4_sequence_data *calldata = data; in nfs41_sequence_call_done() local
7580 struct nfs_client *clp = calldata->clp; in nfs41_sequence_call_done()
7603 struct nfs4_sequence_data *calldata = data; in nfs41_sequence_prepare() local
7604 struct nfs_client *clp = calldata->clp; in nfs41_sequence_prepare()
7624 struct nfs4_sequence_data *calldata; in _nfs41_proc_sequence() local
7638 calldata = kzalloc(sizeof(*calldata), GFP_NOFS); in _nfs41_proc_sequence()
7639 if (calldata == NULL) { in _nfs41_proc_sequence()
7643 nfs4_init_sequence(&calldata->args, &calldata->res, 0); in _nfs41_proc_sequence()
7645 nfs4_set_sequence_privileged(&calldata->args); in _nfs41_proc_sequence()
7646 msg.rpc_argp = &calldata->args; in _nfs41_proc_sequence()
7647 msg.rpc_resp = &calldata->res; in _nfs41_proc_sequence()
7648 calldata->clp = clp; in _nfs41_proc_sequence()
7649 task_setup_data.callback_data = calldata; in _nfs41_proc_sequence()
7697 struct nfs4_reclaim_complete_data *calldata = data; in nfs4_reclaim_complete_prepare() local
7699 nfs41_setup_sequence(calldata->clp->cl_session, in nfs4_reclaim_complete_prepare()
7700 &calldata->arg.seq_args, in nfs4_reclaim_complete_prepare()
7701 &calldata->res.seq_res, in nfs4_reclaim_complete_prepare()
7731 struct nfs4_reclaim_complete_data *calldata = data; in nfs4_reclaim_complete_done() local
7732 struct nfs_client *clp = calldata->clp; in nfs4_reclaim_complete_done()
7733 struct nfs4_sequence_res *res = &calldata->res.seq_res; in nfs4_reclaim_complete_done()
7749 struct nfs4_reclaim_complete_data *calldata = data; in nfs4_free_reclaim_complete_data() local
7751 kfree(calldata); in nfs4_free_reclaim_complete_data()
7766 struct nfs4_reclaim_complete_data *calldata; in nfs41_proc_reclaim_complete() local
7781 calldata = kzalloc(sizeof(*calldata), GFP_NOFS); in nfs41_proc_reclaim_complete()
7782 if (calldata == NULL) in nfs41_proc_reclaim_complete()
7784 calldata->clp = clp; in nfs41_proc_reclaim_complete()
7785 calldata->arg.one_fs = 0; in nfs41_proc_reclaim_complete()
7787 nfs4_init_sequence(&calldata->arg.seq_args, &calldata->res.seq_res, 0); in nfs41_proc_reclaim_complete()
7788 nfs4_set_sequence_privileged(&calldata->arg.seq_args); in nfs41_proc_reclaim_complete()
7789 msg.rpc_argp = &calldata->arg; in nfs41_proc_reclaim_complete()
7790 msg.rpc_resp = &calldata->res; in nfs41_proc_reclaim_complete()
7791 task_setup_data.callback_data = calldata; in nfs41_proc_reclaim_complete()
7807 nfs4_layoutget_prepare(struct rpc_task *task, void *calldata) in nfs4_layoutget_prepare() argument
7809 struct nfs4_layoutget *lgp = calldata; in nfs4_layoutget_prepare()
7830 static void nfs4_layoutget_done(struct rpc_task *task, void *calldata) in nfs4_layoutget_done() argument
7832 struct nfs4_layoutget *lgp = calldata; in nfs4_layoutget_done()
7973 static void nfs4_layoutget_release(void *calldata) in nfs4_layoutget_release() argument
7975 struct nfs4_layoutget *lgp = calldata; in nfs4_layoutget_release()
7984 kfree(calldata); in nfs4_layoutget_release()
8055 nfs4_layoutreturn_prepare(struct rpc_task *task, void *calldata) in nfs4_layoutreturn_prepare() argument
8057 struct nfs4_layoutreturn *lrp = calldata; in nfs4_layoutreturn_prepare()
8066 static void nfs4_layoutreturn_done(struct rpc_task *task, void *calldata) in nfs4_layoutreturn_done() argument
8068 struct nfs4_layoutreturn *lrp = calldata; in nfs4_layoutreturn_done()
8091 static void nfs4_layoutreturn_release(void *calldata) in nfs4_layoutreturn_release() argument
8093 struct nfs4_layoutreturn *lrp = calldata; in nfs4_layoutreturn_release()
8107 kfree(calldata); in nfs4_layoutreturn_release()
8204 static void nfs4_layoutcommit_prepare(struct rpc_task *task, void *calldata) in nfs4_layoutcommit_prepare() argument
8206 struct nfs4_layoutcommit_data *data = calldata; in nfs4_layoutcommit_prepare()
8217 nfs4_layoutcommit_done(struct rpc_task *task, void *calldata) in nfs4_layoutcommit_done() argument
8219 struct nfs4_layoutcommit_data *data = calldata; in nfs4_layoutcommit_done()
8241 static void nfs4_layoutcommit_release(void *calldata) in nfs4_layoutcommit_release() argument
8243 struct nfs4_layoutcommit_data *data = calldata; in nfs4_layoutcommit_release()
8515 static void nfs41_free_stateid_prepare(struct rpc_task *task, void *calldata) in nfs41_free_stateid_prepare() argument
8517 struct nfs_free_stateid_data *data = calldata; in nfs41_free_stateid_prepare()
8524 static void nfs41_free_stateid_done(struct rpc_task *task, void *calldata) in nfs41_free_stateid_done() argument
8526 struct nfs_free_stateid_data *data = calldata; in nfs41_free_stateid_done()
8537 static void nfs41_free_stateid_release(void *calldata) in nfs41_free_stateid_release() argument
8539 kfree(calldata); in nfs41_free_stateid_release()