Home
last modified time | relevance | path

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

12

/fs/nfs/
Ddelegation.c43 delegation->stateid.type = NFS4_INVALID_STATEID_TYPE; in nfs_mark_delegation_revoked()
145 static int nfs_delegation_claim_locks(struct nfs4_state *state, const nfs4_stateid *stateid) in nfs_delegation_claim_locks() argument
163 status = nfs4_lock_delegation_recall(fl, state, stateid); in nfs_delegation_claim_locks()
178 const nfs4_stateid *stateid, fmode_t type) in nfs_delegation_claim_opens() argument
197 if (!nfs4_stateid_match(&state->stateid, stateid)) in nfs_delegation_claim_opens()
206 err = nfs4_open_delegation_recall(ctx, state, stateid); in nfs_delegation_claim_opens()
208 err = nfs_delegation_claim_locks(state, stateid); in nfs_delegation_claim_opens()
231 fmode_t type, const nfs4_stateid *stateid, in nfs_inode_reclaim_delegation() argument
241 nfs4_stateid_copy(&delegation->stateid, stateid); in nfs_inode_reclaim_delegation()
256 nfs_inode_set_delegation(inode, cred, type, stateid, in nfs_inode_reclaim_delegation()
[all …]
Ddelegation.h20 nfs4_stateid stateid; member
43 fmode_t type, const nfs4_stateid *stateid, unsigned long pagemod_limit);
45 fmode_t type, const nfs4_stateid *stateid, unsigned long pagemod_limit);
48 int nfs_async_inode_return_delegation(struct inode *inode, const nfs4_stateid *stateid);
58 void nfs_remove_bad_delegation(struct inode *inode, const nfs4_stateid *stateid);
59 void nfs_delegation_mark_returned(struct inode *inode, const nfs4_stateid *stateid);
69 int nfs4_proc_delegreturn(struct inode *inode, const struct cred *cred, const nfs4_stateid *stateid
70 …gation_recall(struct nfs_open_context *ctx, struct nfs4_state *state, const nfs4_stateid *stateid);
71 …ock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid *stateid);
81 const nfs4_stateid *stateid);
Dnfs4proc.c387 nfs4_stateid *stateid, in nfs4_test_and_free_stateid() argument
392 ops->test_and_free_expired(server, stateid, cred); in nfs4_test_and_free_stateid()
396 nfs4_stateid *stateid, in __nfs4_free_revoked_stateid() argument
399 stateid->type = NFS4_REVOKED_STATEID_TYPE; in __nfs4_free_revoked_stateid()
400 nfs4_test_and_free_stateid(server, stateid, cred); in __nfs4_free_revoked_stateid()
404 const nfs4_stateid *stateid, in nfs4_free_revoked_stateid() argument
409 nfs4_stateid_copy(&tmp, stateid); in nfs4_free_revoked_stateid()
456 nfs4_recoverable_stateid(const nfs4_stateid *stateid) in nfs4_recoverable_stateid() argument
458 if (!stateid) in nfs4_recoverable_stateid()
460 switch (stateid->type) { in nfs4_recoverable_stateid()
[all …]
Dpnfs.c542 const nfs4_stateid *stateid) in pnfs_init_lseg() argument
551 lseg->pls_seq = be32_to_cpu(stateid->seqid); in pnfs_init_lseg()
1015 const nfs4_stateid *stateid) in pnfs_layout_stateid_blocked() argument
1017 u32 seqid = be32_to_cpu(stateid->seqid); in pnfs_layout_stateid_blocked()
1086 const nfs4_stateid *stateid, in pnfs_alloc_init_layoutget_args() argument
1136 nfs4_stateid_copy(&lgp->args.stateid, stateid); in pnfs_alloc_init_layoutget_args()
1171 const nfs4_stateid *stateid) in pnfs_layoutreturn_free_lsegs() argument
1180 if (stateid) { in pnfs_layoutreturn_free_lsegs()
1185 pnfs_set_layout_stateid(lo, stateid, NULL, true); in pnfs_layoutreturn_free_lsegs()
1197 nfs4_stateid *stateid, in pnfs_prepare_layoutreturn() argument
[all …]
Dnfs4trace.h777 be32_to_cpu(state->stateid.seqid);
779 nfs_stateid_hash(&state->stateid);
856 be32_to_cpu(state->stateid.seqid);
858 nfs_stateid_hash(&state->stateid);
902 be32_to_cpu(args->stateid.seqid);
904 nfs_stateid_hash(&args->stateid);
974 be32_to_cpu(state->stateid.seqid);
976 nfs_stateid_hash(&state->stateid);
1046 be32_to_cpu(state->stateid.seqid);
1048 nfs_stateid_hash(&state->stateid);
[all …]
Dnfs42proc.c189 if (memcmp(&res->write_res.stateid, &tmp_copy->stateid, in handle_async_copy()
203 memcpy(&copy->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE); in handle_async_copy()
242 nfs42_do_offload_cancel_async(dst, &copy->stateid); in handle_async_copy()
403 .stateid = &args.src_stateid, in nfs42_proc_copy()
407 .stateid = &args.dst_stateid, in nfs42_proc_copy()
510 nfs4_stateid *stateid) in nfs42_do_offload_cancel_async() argument
538 memcpy(&data->args.osa_stateid, stateid, in nfs42_do_offload_cancel_async()
615 exception.stateid = &args->cna_src_stateid; in nfs42_proc_copy_notify()
724 nfs4_stateid_copy(&data->args.stateid, &lo->plh_stateid); in nfs42_layoutstat_prepare()
755 nfs4_stateid_match(&data->args.stateid, in nfs42_layoutstat_done()
[all …]
Dcallback_proc.c93 &args->stateid, -ntohl(res)); in nfs4_callback_recall()
97 switch (nfs_async_inode_return_delegation(inode, &args->stateid)) { in nfs4_callback_recall()
108 &args->stateid, -ntohl(res)); in nfs4_callback_recall()
123 const nfs4_stateid *stateid) in nfs_layout_find_inode_by_stateid() argument
135 if (!nfs4_stateid_match_other(stateid, &lo->plh_stateid)) in nfs_layout_find_inode_by_stateid()
191 const nfs4_stateid *stateid) in nfs_layout_find_inode() argument
195 inode = nfs_layout_find_inode_by_stateid(clp, stateid); in nfs_layout_find_inode()
710 tmp_copy->stateid.other, in nfs4_callback_offload()
722 memcpy(&copy->stateid, &args->coa_stateid, NFS4_STATEID_SIZE); in nfs4_callback_offload()
Dnfs4_fs.h190 nfs4_stateid stateid; /* Current stateid: may be delegation */ member
208 nfs4_stateid *stateid; member
317 extern int nfs4_set_rw_stateid(nfs4_stateid *stateid,
499 const nfs4_stateid *stateid);
635 const nfs4_stateid *stateid) in nfs4_state_match_open_stateid_other() argument
638 nfs4_stateid_match_other(&state->open_stateid, stateid); in nfs4_state_match_open_stateid_other()
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()
207 static __be32 decode_layout_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_layout_stateid() argument
209 stateid->type = NFS4_LAYOUT_STATEID_TYPE; in decode_layout_stateid()
210 return decode_stateid(xdr, stateid); in decode_layout_stateid()
Dnfs4xdr.c1051 static void encode_nfs4_stateid(struct xdr_stream *xdr, const nfs4_stateid *stateid) in encode_nfs4_stateid() argument
1053 encode_opaque_fixed(xdr, stateid, NFS4_STATEID_SIZE); in encode_nfs4_stateid()
1198 encode_nfs4_stateid(xdr, &arg->stateid); in encode_close()
1366 encode_nfs4_stateid(xdr, &args->stateid); in encode_locku()
1497 …de_claim_delegate_cur(struct xdr_stream *xdr, const struct qstr *name, const nfs4_stateid *stateid) in encode_claim_delegate_cur() argument
1503 encode_nfs4_stateid(xdr, stateid); in encode_claim_delegate_cur()
1515 static inline void encode_claim_delegate_cur_fh(struct xdr_stream *xdr, const nfs4_stateid *stateid) in encode_claim_delegate_cur_fh() argument
1521 encode_nfs4_stateid(xdr, stateid); in encode_claim_delegate_cur_fh()
1553 encode_nfs4_stateid(xdr, arg->stateid); in encode_open_confirm()
1560 encode_nfs4_stateid(xdr, &arg->stateid); in encode_open_downgrade()
[all …]
Dnfs4state.c1415 &state->stateid); in nfs4_schedule_stateid_recovery()
1425 const nfs4_stateid *stateid) in nfs_state_find_lock_state_by_stateid() argument
1432 if (nfs4_stateid_match_or_older(&pos->ls_stateid, stateid)) in nfs_state_find_lock_state_by_stateid()
1439 const nfs4_stateid *stateid) in nfs_state_lock_state_matches_stateid() argument
1445 if (nfs_state_find_lock_state_by_stateid(state, stateid)) in nfs_state_lock_state_matches_stateid()
1453 const nfs4_stateid *stateid) in nfs_inode_find_state_and_recover() argument
1466 if (nfs4_stateid_match_or_older(&state->stateid, stateid) && in nfs_inode_find_state_and_recover()
1472 nfs4_stateid_match_or_older(&state->open_stateid, stateid) && in nfs_inode_find_state_and_recover()
1477 if (nfs_state_lock_state_matches_stateid(state, stateid) && in nfs_inode_find_state_and_recover()
1483 nfs_inode_find_delegation_state_and_recover(inode, stateid); in nfs_inode_find_state_and_recover()
[all …]
Dnfs4file.c322 struct nfs_fh *src_fh, nfs4_stateid *stateid) in __nfs42_ssc_open() argument
389 memcpy(&ctx->state->open_stateid.other, &stateid->other, in __nfs42_ssc_open()
391 update_open_stateid(ctx->state, stateid, NULL, filep->f_mode); in __nfs42_ssc_open()
Dinternal.h792 static inline u32 nfs_stateid_hash(const nfs4_stateid *stateid) in nfs_stateid_hash() argument
794 return ~crc32_le(0xFFFFFFFF, &stateid->other[0], in nfs_stateid_hash()
802 static inline u32 nfs_stateid_hash(nfs4_stateid *stateid) in nfs_stateid_hash() argument
Dcallback.h81 nfs4_stateid stateid; member
/fs/nfs/flexfilelayout/
Dflexfilelayoutdev.c207 ret = memcmp(e1->stateid.data, e2->stateid.data, in ff_ds_error_match()
208 sizeof(e1->stateid.data)); in ff_ds_error_match()
272 nfs4_stateid_copy(&dserr->stateid, &mirror->stateid); in ff_layout_track_ds_error()
313 nfs4_stateid *stateid) in nfs4_ff_layout_select_ds_stateid() argument
316 nfs4_stateid_copy(stateid, &mirror->stateid); in nfs4_ff_layout_select_ds_stateid()
489 p = xdr_encode_opaque_fixed(p, &err->stateid, in ff_layout_encode_ds_ioerr()
Dflexfilelayout.h50 nfs4_stateid stateid; member
83 nfs4_stateid stateid; member
209 nfs4_stateid *stateid);
Dflexfilelayout.c75 static int decode_pnfs_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_pnfs_stateid() argument
82 stateid->type = NFS4_PNFS_DS_STATEID_TYPE; in decode_pnfs_stateid()
83 memcpy(stateid->data, p, NFS4_STATEID_SIZE); in decode_pnfs_stateid()
447 rc = decode_pnfs_stateid(&stream, &fls->mirror_array[i]->stateid); in ff_layout_alloc_lseg()
1791 nfs4_ff_layout_select_ds_stateid(mirror, &hdr->args.stateid); in ff_layout_read_pagelist()
1860 nfs4_ff_layout_select_ds_stateid(mirror, &hdr->args.stateid); in ff_layout_write_pagelist()
2032 const nfs4_stateid *stateid, in ff_layout_encode_ff_iostat_head() argument
2040 encode_opaque_fixed(xdr, stateid->data, NFS4_STATEID_SIZE); in ff_layout_encode_ff_iostat_head()
2051 const nfs4_stateid *stateid, in ff_layout_encode_ff_iostat() argument
2054 ff_layout_encode_ff_iostat_head(xdr, stateid, devinfo); in ff_layout_encode_ff_iostat()
[all …]
/fs/nfsd/
Dnfs4state.c75 #define ZERO_STATEID(stateid) (!memcmp((stateid), &zero_stateid, sizeof(stateid_t))) argument
76 #define ONE_STATEID(stateid) (!memcmp((stateid), &one_stateid, sizeof(stateid_t))) argument
77 #define CURRENT_STATEID(stateid) (!memcmp((stateid), &currentstateid, sizeof(stateid_t))) argument
78 #define CLOSE_STATEID(stateid) (!memcmp((stateid), &close_stateid, sizeof(stateid_t))) argument
5577 check_special_stateids(struct net *net, svc_fh *current_fh, stateid_t *stateid, int flags) in check_special_stateids() argument
5579 if (ONE_STATEID(stateid) && (flags & RD_STATE)) in check_special_stateids()
5651 static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid) in nfsd4_validate_stateid() argument
5656 if (ZERO_STATEID(stateid) || ONE_STATEID(stateid) || in nfsd4_validate_stateid()
5657 CLOSE_STATEID(stateid)) in nfsd4_validate_stateid()
5660 s = find_stateid_locked(cl, stateid); in nfsd4_validate_stateid()
[all …]
Dflexfilelayoutxdr.c62 *p++ = cpu_to_be32(fl->stateid.si_generation); in nfsd4_ff_encode_layoutget()
63 p = xdr_encode_opaque_fixed(p, &fl->stateid.si_opaque, in nfsd4_ff_encode_layoutget()
Dnfs4proc.c1005 stateid_t *stateid = &write->wr_stateid; in nfsd4_write() local
1019 stateid, WR_STATE, &nf, NULL); in nfsd4_write()
1161 nfs4_stateid *stateid);
1284 copy->stateid.seqid = cpu_to_be32(s_stid->si_generation); in nfsd4_setup_inter_ssc()
1285 memcpy(copy->stateid.other, (void *)&s_stid->si_opaque, in nfsd4_setup_inter_ssc()
1323 nfs4_stateid *stateid) in nfs42_ssc_open() argument
1436 memcpy(&dst->stateid, &src->stateid, sizeof(src->stateid)); in dup_copy_fields()
1466 &copy->stateid); in nfsd4_do_async_copy()
1560 find_async_copy(struct nfs4_client *clp, stateid_t *stateid) in find_async_copy() argument
1566 if (memcmp(&copy->cp_stateid.stid, stateid, NFS4_STATEID_SIZE)) in find_async_copy()
[all …]
Dxdr4.h180 stateid_t stateid; member
193 #define lk_resp_stateid u.ok.stateid
581 nfs4_stateid stateid; member
598 stateid_t stateid; member
Dflexfilelayoutxdr.h41 stateid_t stateid; member
Dpnfs.h55 struct nfsd4_compound_state *cstate, stateid_t *stateid,
Dstate.h634 stateid_t *stateid, int flags, struct nfsd_file **filp,
637 stateid_t *stateid, unsigned char typemask,
Dnfs4layouts.c266 struct nfsd4_compound_state *cstate, stateid_t *stateid, in nfsd4_preprocess_layout_stateid() argument
277 status = nfsd4_lookup_stateid(cstate, stateid, typemask, &stid, in nfsd4_preprocess_layout_stateid()
301 if (nfsd4_stateid_generation_after(stateid, &stid->sc_stateid)) in nfsd4_preprocess_layout_stateid()

12