Home
last modified time | relevance | path

Searched refs:stateid (Results 1 – 25 of 25) sorted by relevance

/linux/fs/nfs/
H A Ddelegation.c60 delegation->stateid.type = NFS4_INVALID_STATEID_TYPE; in nfs_mark_delegation_revoked()
173 static int nfs_delegation_claim_locks(struct nfs4_state *state, const nfs4_stateid *stateid) in nfs_delegation_claim_locks() argument
191 status = nfs4_lock_delegation_recall(fl, state, stateid); in nfs_delegation_claim_locks()
206 const nfs4_stateid *stateid, fmode_t type) in nfs_delegation_claim_opens() argument
224 if (!nfs4_stateid_match(&state->stateid, stateid)) in nfs_delegation_claim_opens()
232 err = nfs4_open_delegation_recall(ctx, state, stateid); in nfs_delegation_claim_opens()
234 err = nfs_delegation_claim_locks(state, stateid); in nfs_delegation_claim_opens()
256 fmode_t type, const nfs4_stateid *stateid, in nfs_inode_reclaim_delegation() argument
266 nfs_inode_set_delegation(inode, cred, type, stateid, in nfs_inode_reclaim_delegation()
272 nfs4_stateid_copy(&delegation->stateid, stateid); in nfs_inode_reclaim_delegation()
[all …]
H A Dnfs4proc.c411 nfs4_stateid *stateid, in nfs4_test_and_free_stateid() argument
416 ops->test_and_free_expired(server, stateid, cred); in nfs4_test_and_free_stateid()
420 nfs4_stateid *stateid, in __nfs4_free_revoked_stateid() argument
423 stateid->type = NFS4_REVOKED_STATEID_TYPE; in __nfs4_free_revoked_stateid()
424 nfs4_test_and_free_stateid(server, stateid, cred); in __nfs4_free_revoked_stateid()
428 const nfs4_stateid *stateid, in nfs4_free_revoked_stateid() argument
433 nfs4_stateid_copy(&tmp, stateid); in nfs4_free_revoked_stateid()
485 nfs4_recoverable_stateid(const nfs4_stateid *stateid) in nfs4_recoverable_stateid() argument
487 if (!stateid) in nfs4_recoverable_stateid()
489 switch (stateid in nfs4_recoverable_stateid()
508 const nfs4_stateid *stateid; nfs4_do_handle_exception() local
1536 can_open_delegated(const struct inode * inode,fmode_t fmode,enum open_claim_type4 claim,nfs4_stateid * stateid) can_open_delegated() argument
1627 nfs_stateid_is_sequential(struct nfs4_state * state,const nfs4_stateid * stateid) nfs_stateid_is_sequential() argument
1658 nfs_clear_open_stateid_locked(struct nfs4_state * state,nfs4_stateid * stateid,fmode_t fmode) nfs_clear_open_stateid_locked() argument
1691 nfs_clear_open_stateid(struct nfs4_state * state,nfs4_stateid * arg_stateid,nfs4_stateid * stateid,fmode_t fmode) nfs_clear_open_stateid() argument
1703 nfs_set_open_stateid_locked(struct nfs4_state * state,const nfs4_stateid * stateid,nfs4_stateid * freeme) nfs_set_open_stateid_locked() argument
1882 nfs4_update_lock_stateid(struct nfs4_lock_state * lsp,const nfs4_stateid * stateid) nfs4_update_lock_stateid() argument
1918 nfs4_stateid stateid; nfs4_try_open_cached() local
2293 nfs4_handle_delegation_recall_error(struct nfs_server * server,struct nfs4_state * state,const nfs4_stateid * stateid,struct file_lock * fl,int err) nfs4_handle_delegation_recall_error() argument
2349 nfs4_open_delegation_recall(struct nfs_open_context * ctx,struct nfs4_state * state,const nfs4_stateid * stateid) nfs4_open_delegation_recall() argument
2824 nfs_finish_clear_delegation_stateid(struct nfs4_state * state,const nfs4_stateid * stateid) nfs_finish_clear_delegation_stateid() argument
2831 nfs41_test_and_free_expired_stateid(struct nfs_server * server,nfs4_stateid * stateid,const struct cred * cred) nfs41_test_and_free_expired_stateid() argument
2864 nfs4_stateid stateid; nfs41_check_delegation_stateid() local
2979 nfs4_stateid *stateid = &state->open_stateid; nfs41_check_open_stateid() local
5555 nfs4_set_rw_stateid(nfs4_stateid * stateid,const struct nfs_open_context * ctx,const struct nfs_lock_context * l_ctx,fmode_t fmode) nfs4_set_rw_stateid() argument
5564 nfs4_stateid_is_current(nfs4_stateid * stateid,const struct nfs_open_context * ctx,const struct nfs_lock_context * l_ctx,fmode_t fmode) nfs4_stateid_is_current() argument
6648 nfs4_stateid stateid; global() member
6803 _nfs4_proc_delegreturn(struct inode * inode,const struct cred * cred,const nfs4_stateid * stateid,struct nfs_delegation * delegation,int issync) _nfs4_proc_delegreturn() argument
6892 nfs4_proc_delegreturn(struct inode * inode,const struct cred * cred,const nfs4_stateid * stateid,struct nfs_delegation * delegation,int issync) nfs4_proc_delegreturn() argument
7782 nfs4_lock_delegation_recall(struct file_lock * fl,struct nfs4_state * state,const nfs4_stateid * stateid) nfs4_lock_delegation_recall() argument
10207 _nfs41_test_stateid(struct nfs_server * server,const nfs4_stateid * stateid,const struct cred * cred) _nfs41_test_stateid() argument
10268 nfs41_test_stateid(struct nfs_server * server,const nfs4_stateid * stateid,const struct cred * cred) nfs41_test_stateid() argument
10336 nfs41_free_stateid(struct nfs_server * server,nfs4_stateid * stateid,const struct cred * cred,bool privileged) nfs41_free_stateid() argument
[all...]
H A Dpnfs.c338 * Compare 2 layout stateid sequence ids, to see which is newer,
407 * Update the seqid of a layout stateid after receiving
555 const nfs4_stateid *stateid) in pnfs_init_lseg() argument
564 lseg->pls_seq = be32_to_cpu(stateid->seqid); in pnfs_init_lseg()
1096 const nfs4_stateid *stateid) in pnfs_layout_stateid_blocked() argument
1098 u32 seqid = be32_to_cpu(stateid->seqid); in pnfs_layout_stateid_blocked()
1167 const nfs4_stateid *stateid, in pnfs_alloc_init_layoutget_args() argument
1217 nfs4_stateid_copy(&lgp->args.stateid, stateid); in pnfs_alloc_init_layoutget_args()
1278 const nfs4_stateid *stateid) in pnfs_layoutreturn_free_lsegs() argument
1304 pnfs_prepare_layoutreturn(struct pnfs_layout_hdr * lo,nfs4_stateid * stateid,const struct cred ** cred,enum pnfs_iomode * iomode) pnfs_prepare_layoutreturn() argument
1332 pnfs_init_layoutreturn_args(struct nfs4_layoutreturn_args * args,struct pnfs_layout_hdr * lo,const nfs4_stateid * stateid,enum pnfs_iomode iomode) pnfs_init_layoutreturn_args() argument
1348 pnfs_send_layoutreturn(struct pnfs_layout_hdr * lo,const nfs4_stateid * stateid,const struct cred ** pcred,enum pnfs_iomode iomode,unsigned int flags) pnfs_send_layoutreturn() argument
1404 nfs4_stateid stateid; pnfs_layoutreturn_before_put_layout_hdr() local
1439 nfs4_stateid stateid; _pnfs_return_layout() local
1547 nfs4_stateid stateid; pnfs_roc() local
2139 nfs4_stateid stateid; pnfs_update_layout() local
2720 nfs4_stateid stateid; pnfs_mark_layout_for_return() local
2814 nfs4_stateid stateid; pnfs_layout_return_unused_byserver() local
[all...]
H A Dnfs42proc.c24 static int nfs42_proc_offload_status(struct file *file, nfs4_stateid *stateid,
258 if (memcmp(&res->write_res.stateid, &iter->stateid, in handle_async_copy()
272 memcpy(&copy->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE); in handle_async_copy()
309 nfs42_do_offload_cancel_async(dst, &copy->stateid); in handle_async_copy()
317 status = nfs42_proc_offload_status(dst, &copy->stateid, &copied); in handle_async_copy()
531 .stateid = &args.src_stateid, in nfs42_proc_copy()
535 .stateid = &args.dst_stateid, in nfs42_proc_copy()
640 nfs4_stateid *stateid) in nfs42_do_offload_cancel_async() argument
668 memcpy(&data->args.osa_stateid, stateid, in nfs42_do_offload_cancel_async()
746 nfs42_proc_offload_status(struct file *dst, nfs4_stateid *stateid, u64 *copied) in nfs42_proc_offload_status() argument
[all …]
H A Dcallback_proc.c107 &args->stateid, -ntohl(res)); in nfs4_callback_recall()
111 switch (nfs_async_inode_return_delegation(inode, &args->stateid)) { in nfs4_callback_recall()
122 &args->stateid, -ntohl(res)); in nfs4_callback_recall()
135 const nfs4_stateid *stateid) in nfs_layout_find_inode_by_stateid() argument
147 if (!nfs4_stateid_match_other(stateid, &lo->plh_stateid)) in nfs_layout_find_inode_by_stateid()
203 const nfs4_stateid *stateid) in nfs_layout_find_inode() argument
207 inode = nfs_layout_find_inode_by_stateid(clp, stateid); in nfs_layout_find_inode()
731 tmp_copy->stateid.other, in nfs4_callback_offload()
743 memcpy(&copy->stateid, &args->coa_stateid, NFS4_STATEID_SIZE); in nfs4_callback_offload()
H A Dcallback_xdr.c125 static __be32 decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_stateid() argument
132 memcpy(stateid->data, p, NFS4_STATEID_SIZE); in decode_stateid()
136 static __be32 decode_delegation_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_delegation_stateid() argument
138 stateid->type = NFS4_DELEGATION_STATEID_TYPE; in decode_delegation_stateid()
139 return decode_stateid(xdr, stateid); in decode_delegation_stateid()
196 status = decode_delegation_stateid(xdr, &args->stateid); in decode_recall_args()
206 static __be32 decode_layout_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_layout_stateid() argument
208 stateid->type = NFS4_LAYOUT_STATEID_TYPE; in decode_layout_stateid()
209 return decode_stateid(xdr, stateid); in decode_layout_stateid()
H A Dnfs4state.c1328 &state->stateid); in nfs4_schedule_stateid_recovery()
1338 const nfs4_stateid *stateid) in nfs_state_find_lock_state_by_stateid() argument
1345 if (nfs4_stateid_match_or_older(&pos->ls_stateid, stateid)) in nfs_state_find_lock_state_by_stateid()
1352 const nfs4_stateid *stateid) in nfs_state_lock_state_matches_stateid() argument
1358 if (nfs_state_find_lock_state_by_stateid(state, stateid)) in nfs_state_lock_state_matches_stateid()
1366 const nfs4_stateid *stateid) in nfs_inode_find_state_and_recover() argument
1381 if (nfs4_stateid_match_or_older(&state->stateid, stateid) && in nfs_inode_find_state_and_recover()
1387 nfs4_stateid_match_or_older(&state->open_stateid, stateid) && in nfs_inode_find_state_and_recover()
1392 if (nfs_state_lock_state_matches_stateid(state, stateid) && in nfs_inode_find_state_and_recover()
1398 nfs_inode_find_delegation_state_and_recover(inode, stateid); in nfs_inode_find_state_and_recover()
[all …]
H A Dnfs4file.c306 struct nfs_fh *src_fh, nfs4_stateid *stateid) in __nfs42_ssc_open() argument
371 memcpy(&ctx->state->open_stateid.other, &stateid->other, in __nfs42_ssc_open()
373 update_open_stateid(ctx->state, stateid, NULL, filep->f_mode); in __nfs42_ssc_open()
H A Dnfs42xdr.c403 encode_nfs4_stateid(xdr, &args->stateid); in encode_read_plus()
429 encode_nfs4_stateid(xdr, &args->stateid); in encode_layoutstats()
483 encode_nfs4_stateid(xdr, &args->stateid); in encode_layouterror()
893 status = decode_opaque_fixed(xdr, &res->stateid, in decode_write_response()
H A Dnfs40proc.c154 nfs4_stateid *stateid, in nfs40_test_and_free_expired_stateid() argument
H A Dpnfs.h338 const nfs4_stateid *stateid);
/linux/include/linux/
H A Dnfs_ssc.h20 struct nfs_fh *src_fh, nfs4_stateid *stateid);
44 struct nfs_fh *src_fh, nfs4_stateid *stateid) in nfs42_ssc_open() argument
47 return (*nfs_ssc_client_tbl.ssc_nfs4_ops->sco_open)(ss_mnt, src_fh, stateid); in nfs42_ssc_open()
H A Dnfs_fs.h282 nfs4_stateid stateid; member
/linux/fs/nfs/flexfilelayout/
H A Dflexfilelayoutdev.c208 ret = memcmp(e1->stateid.data, e2->stateid.data, in ff_ds_error_match()
209 sizeof(e1->stateid.data)); in ff_ds_error_match()
273 nfs4_stateid_copy(&dserr->stateid, &mirror->dss[dss_id].stateid); in ff_layout_track_ds_error()
315 nfs4_stateid *stateid) in nfs4_ff_layout_select_ds_stateid() argument
318 nfs4_stateid_copy(stateid, &mirror->dss[dss_id].stateid); in nfs4_ff_layout_select_ds_stateid()
503 p = xdr_encode_opaque_fixed(p, &err->stateid, in ff_layout_encode_ds_ioerr()
H A Dflexfilelayout.h52 nfs4_stateid stateid; member
85 nfs4_stateid stateid; member
233 nfs4_stateid *stateid);
H A Dflexfilelayout.c82 static int decode_pnfs_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_pnfs_stateid() argument
89 stateid->type = NFS4_PNFS_DS_STATEID_TYPE; in decode_pnfs_stateid()
90 memcpy(stateid->data, p, NFS4_STATEID_SIZE); in decode_pnfs_stateid()
91 dprintk("%s: stateid id= [%x%x%x%x]\n", __func__, in decode_pnfs_stateid()
543 /* stateid */ in ff_layout_alloc_lseg()
544 rc = decode_pnfs_stateid(&stream, &dss_info->stateid); in ff_layout_alloc_lseg()
2175 nfs4_ff_layout_select_ds_stateid(mirror, dss_id, &hdr->args.stateid); in ff_layout_read_pagelist()
2261 nfs4_ff_layout_select_ds_stateid(mirror, dss_id, &hdr->args.stateid); in ff_layout_write_pagelist()
2504 const nfs4_stateid *stateid, in ff_layout_encode_ff_iostat_head() argument
2512 encode_opaque_fixed(xdr, stateid in ff_layout_encode_ff_iostat_head()
2523 ff_layout_encode_ff_iostat(struct xdr_stream * xdr,const nfs4_stateid * stateid,const struct nfs42_layoutstat_devinfo * devinfo) ff_layout_encode_ff_iostat() argument
[all...]
/linux/fs/nfsd/
H A Dflexfilelayoutxdr.c61 *p++ = cpu_to_be32(fl->stateid.si_generation); in nfsd4_ff_encode_layoutget()
62 p = xdr_encode_opaque_fixed(p, &fl->stateid.si_opaque, in nfsd4_ff_encode_layoutget()
H A Dnfs4state.c79 #define ZERO_STATEID(stateid) (!memcmp((stateid), &zero_stateid, sizeof(stateid_t))) argument
80 #define ONE_STATEID(stateid) (!memcmp((stateid), &one_stateid, sizeof(stateid_t))) argument
81 #define CURRENT_STATEID(stateid) (!memcmp((stateid), &currentstateid, sizeof(stateid_t))) argument
82 #define CLOSE_STATEID(stateid) (!memcmp((stateid), &close_stateid, sizeof(stateid_t))) argument
108 * the refcount on the open stateid to drop.
408 * st_{access,deny}_bmap field of the stateid, i
7121 check_special_stateids(struct net * net,svc_fh * current_fh,stateid_t * stateid,int flags) check_special_stateids() argument
7188 nfsd4_validate_stateid(struct nfs4_client * cl,stateid_t * stateid) nfsd4_validate_stateid() argument
7228 nfsd4_lookup_stateid(struct nfsd4_compound_state * cstate,stateid_t * stateid,unsigned short typemask,unsigned short statusmask,struct nfs4_stid ** s,struct nfsd_net * nn) nfsd4_lookup_stateid() argument
7439 nfs4_preprocess_stateid_op(struct svc_rqst * rqstp,struct nfsd4_compound_state * cstate,struct svc_fh * fhp,stateid_t * stateid,int flags,struct nfsd_file ** nfp,struct nfs4_stid ** cstid) nfs4_preprocess_stateid_op() argument
7501 struct nfsd4_test_stateid_id *stateid; nfsd4_test_stateid() local
7512 nfsd4_free_lock_stateid(stateid_t * stateid,struct nfs4_stid * s) nfsd4_free_lock_stateid() argument
7545 stateid_t *stateid = &free_stateid->fr_stateid; nfsd4_free_stateid() local
7604 nfs4_seqid_op_checks(struct nfsd4_compound_state * cstate,stateid_t * stateid,u32 seqid,struct nfs4_ol_stateid * stp) nfs4_seqid_op_checks() argument
7640 nfs4_preprocess_seqid_op(struct nfsd4_compound_state * cstate,u32 seqid,stateid_t * stateid,unsigned short typemask,unsigned short statusmask,struct nfs4_ol_stateid ** stpp,struct nfsd_net * nn) nfs4_preprocess_seqid_op() argument
7672 nfs4_preprocess_confirmed_seqid_op(struct nfsd4_compound_state * cstate,u32 seqid,stateid_t * stateid,struct nfs4_ol_stateid ** stpp,struct nfsd_net * nn) nfs4_preprocess_confirmed_seqid_op() argument
7891 stateid_t *stateid = &dr->dr_stateid; nfsd4_delegreturn() local
9148 get_stateid(struct nfsd4_compound_state * cstate,stateid_t * stateid) get_stateid() argument
9156 put_stateid(struct nfsd4_compound_state * cstate,stateid_t * stateid) put_stateid() argument
[all...]
H A Dflexfilelayoutxdr.h41 stateid_t stateid; member
H A Dnfs4proc.c1325 stateid_t *stateid = &write->wr_stateid; in nfsd4_write() local
1339 stateid, WR_STATE, &nf, &stid); in nfsd4_write()
1612 nfs4_stateid *stateid);
1823 copy->stateid.seqid = cpu_to_be32(s_stid->si_generation); in nfsd4_setup_inter_ssc()
1824 memcpy(copy->stateid.other, (void *)&s_stid->si_opaque, in nfsd4_setup_inter_ssc()
1873 nfs4_stateid *stateid) in nfs42_ssc_open() argument
2010 memcpy(&dst->stateid, &src->stateid, sizeof(src->stateid)); in dup_copy_fields()
2092 &copy->c_fh, &copy->stateid); in nfsd4_do_async_copy()
2224 find_async_copy_locked(struct nfs4_client *clp, stateid_t *stateid) in find_async_copy_locked() argument
2231 if (memcmp(&copy->cp_stateid.cs_stid, stateid, NFS4_STATEID_SIZE)) in find_async_copy_locked()
[all …]
H A Dpnfs.h57 struct nfsd4_compound_state *cstate, stateid_t *stateid,
H A Dnfs4layouts.c280 struct nfsd4_compound_state *cstate, stateid_t *stateid, in nfsd4_preprocess_layout_stateid() argument
291 status = nfsd4_lookup_stateid(cstate, stateid, typemask, 0, &stid, in nfsd4_preprocess_layout_stateid()
315 if (nfsd4_stateid_generation_after(stateid, &stid->sc_stateid)) in nfsd4_preprocess_layout_stateid()
H A Dstate.h794 stateid_t *stateid, int flags, struct nfsd_file **filp,
797 stateid_t *stateid, unsigned short typemask,
H A Dnfs4xdr.c2046 struct nfsd4_test_stateid_id *stateid; in nfsd4_decode_test_stateid() local
2056 stateid = svcxdr_tmpalloc(argp, sizeof(*stateid)); in nfsd4_decode_test_stateid()
2057 if (!stateid) in nfsd4_decode_test_stateid()
2059 INIT_LIST_HEAD(&stateid->ts_id_list); in nfsd4_decode_test_stateid()
2060 list_add_tail(&stateid->ts_id_list, &test_stateid->ts_stateid_list); in nfsd4_decode_test_stateid()
2061 status = nfsd4_decode_stateid4(argp, &stateid->ts_id_stateid); in nfsd4_decode_test_stateid()
2230 return nfsd4_decode_stateid4(argp, &os->stateid); in nfsd4_decode_offload_status()
5449 struct nfsd4_test_stateid_id *stateid, *next; in nfsd4_encode_test_stateid() local
5455 list_for_each_entry_safe(stateid, next, in nfsd4_encode_test_stateid()
5457 if (xdr_stream_encode_be32(xdr, stateid->ts_id_status) != XDR_UNIT) in nfsd4_encode_test_stateid()
/linux/fs/nfs/filelayout/
H A Dfilelayout.c289 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in filelayout_read_prepare()
385 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in filelayout_write_prepare()