Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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()
232 const nfs4_stateid *stateid, in nfs_inode_reclaim_delegation() argument
243 nfs4_stateid_copy(&delegation->stateid, stateid); in nfs_inode_reclaim_delegation()
260 nfs_inode_set_delegation(inode, cred, type, stateid, pagemod_limit); 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.c373 nfs4_stateid *stateid, in nfs4_test_and_free_stateid() argument
378 ops->test_and_free_expired(server, stateid, cred); in nfs4_test_and_free_stateid()
382 nfs4_stateid *stateid, in __nfs4_free_revoked_stateid() argument
385 stateid->type = NFS4_REVOKED_STATEID_TYPE; in __nfs4_free_revoked_stateid()
386 nfs4_test_and_free_stateid(server, stateid, cred); in __nfs4_free_revoked_stateid()
390 const nfs4_stateid *stateid, in nfs4_free_revoked_stateid() argument
395 nfs4_stateid_copy(&tmp, stateid); in nfs4_free_revoked_stateid()
442 nfs4_recoverable_stateid(const nfs4_stateid *stateid) in nfs4_recoverable_stateid() argument
444 if (!stateid) in nfs4_recoverable_stateid()
446 switch (stateid->type) { in nfs4_recoverable_stateid()
[all …]
Dpnfs.c530 const nfs4_stateid *stateid) in pnfs_init_lseg() argument
539 lseg->pls_seq = be32_to_cpu(stateid->seqid); in pnfs_init_lseg()
1003 const nfs4_stateid *stateid) in pnfs_layout_stateid_blocked() argument
1005 u32 seqid = be32_to_cpu(stateid->seqid); in pnfs_layout_stateid_blocked()
1074 const nfs4_stateid *stateid, in pnfs_alloc_init_layoutget_args() argument
1124 nfs4_stateid_copy(&lgp->args.stateid, stateid); in pnfs_alloc_init_layoutget_args()
1159 const nfs4_stateid *stateid) in pnfs_layoutreturn_free_lsegs() argument
1168 if (stateid) { in pnfs_layoutreturn_free_lsegs()
1173 pnfs_set_layout_stateid(lo, stateid, NULL, true); in pnfs_layoutreturn_free_lsegs()
1185 nfs4_stateid *stateid, in pnfs_prepare_layoutreturn() argument
[all …]
Dnfs4trace.h775 be32_to_cpu(state->stateid.seqid);
777 nfs_stateid_hash(&state->stateid);
854 be32_to_cpu(state->stateid.seqid);
856 nfs_stateid_hash(&state->stateid);
900 be32_to_cpu(args->stateid.seqid);
902 nfs_stateid_hash(&args->stateid);
972 be32_to_cpu(state->stateid.seqid);
974 nfs_stateid_hash(&state->stateid);
1044 be32_to_cpu(state->stateid.seqid);
1046 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()
402 .stateid = &args.src_stateid, in nfs42_proc_copy()
406 .stateid = &args.dst_stateid, in nfs42_proc_copy()
508 nfs4_stateid *stateid) in nfs42_do_offload_cancel_async() argument
536 memcpy(&data->args.osa_stateid, stateid, in nfs42_do_offload_cancel_async()
610 exception.stateid = &args->cna_src_stateid; in nfs42_proc_copy_notify()
719 nfs4_stateid_copy(&data->args.stateid, &lo->plh_stateid); in nfs42_layoutstat_prepare()
750 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()
718 tmp_copy->stateid.other, in nfs4_callback_offload()
730 memcpy(&copy->stateid, &args->coa_stateid, NFS4_STATEID_SIZE); in nfs4_callback_offload()
Dnfs4_fs.h189 nfs4_stateid stateid; /* Current stateid: may be delegation */ member
207 nfs4_stateid *stateid; member
315 extern int nfs4_set_rw_stateid(nfs4_stateid *stateid,
497 const nfs4_stateid *stateid);
633 const nfs4_stateid *stateid) in nfs4_state_match_open_stateid_other() argument
636 nfs4_stateid_match_other(&state->open_stateid, stateid); in nfs4_state_match_open_stateid_other()
/kernel/linux/linux-4.19/fs/nfs/
Ddelegation.c106 static int nfs_delegation_claim_locks(struct nfs4_state *state, const nfs4_stateid *stateid) in nfs_delegation_claim_locks() argument
124 status = nfs4_lock_delegation_recall(fl, state, stateid); in nfs_delegation_claim_locks()
139 const nfs4_stateid *stateid, fmode_t type) in nfs_delegation_claim_opens() argument
158 if (!nfs4_stateid_match(&state->stateid, stateid)) in nfs_delegation_claim_opens()
166 err = nfs4_open_delegation_recall(ctx, state, stateid); in nfs_delegation_claim_opens()
168 err = nfs_delegation_claim_locks(state, stateid); in nfs_delegation_claim_opens()
192 const nfs4_stateid *stateid, in nfs_inode_reclaim_delegation() argument
203 nfs4_stateid_copy(&delegation->stateid, stateid); in nfs_inode_reclaim_delegation()
220 nfs_inode_set_delegation(inode, cred, type, stateid, pagemod_limit); in nfs_inode_reclaim_delegation()
230 &delegation->stateid, in nfs_do_return_delegation()
[all …]
Ddelegation.h20 nfs4_stateid stateid; member
41 fmode_t type, const nfs4_stateid *stateid, unsigned long pagemod_limit);
43 fmode_t type, const nfs4_stateid *stateid, unsigned long pagemod_limit);
45 int nfs_async_inode_return_delegation(struct inode *inode, const nfs4_stateid *stateid);
55 void nfs_remove_bad_delegation(struct inode *inode, const nfs4_stateid *stateid);
64 int nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, const nfs4_stateid *stateid, …
65 …gation_recall(struct nfs_open_context *ctx, struct nfs4_state *state, const nfs4_stateid *stateid);
66 …ock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid *stateid);
76 const nfs4_stateid *stateid);
Dnfs4trace.h417 be32_to_cpu(state->stateid.seqid);
419 nfs_stateid_hash(&state->stateid);
496 be32_to_cpu(state->stateid.seqid);
498 nfs_stateid_hash(&state->stateid);
542 be32_to_cpu(args->stateid.seqid);
544 nfs_stateid_hash(&args->stateid);
607 be32_to_cpu(state->stateid.seqid);
609 nfs_stateid_hash(&state->stateid);
679 be32_to_cpu(state->stateid.seqid);
681 nfs_stateid_hash(&state->stateid);
[all …]
Dpnfs.c485 const nfs4_stateid *stateid) in pnfs_init_lseg() argument
493 lseg->pls_seq = be32_to_cpu(stateid->seqid); in pnfs_init_lseg()
931 const nfs4_stateid *stateid) in pnfs_layout_stateid_blocked() argument
933 u32 seqid = be32_to_cpu(stateid->seqid); in pnfs_layout_stateid_blocked()
1002 const nfs4_stateid *stateid, in pnfs_alloc_init_layoutget_args() argument
1045 nfs4_stateid_copy(&lgp->args.stateid, stateid); in pnfs_alloc_init_layoutget_args()
1081 const nfs4_stateid *stateid) in pnfs_layoutreturn_free_lsegs() argument
1090 if (stateid) { in pnfs_layoutreturn_free_lsegs()
1095 pnfs_set_layout_stateid(lo, stateid, true); in pnfs_layoutreturn_free_lsegs()
1107 nfs4_stateid *stateid, in pnfs_prepare_layoutreturn() argument
[all …]
Dnfs4proc.c363 nfs4_stateid *stateid, in nfs4_test_and_free_stateid() argument
368 ops->test_and_free_expired(server, stateid, cred); in nfs4_test_and_free_stateid()
372 nfs4_stateid *stateid, in __nfs4_free_revoked_stateid() argument
375 stateid->type = NFS4_REVOKED_STATEID_TYPE; in __nfs4_free_revoked_stateid()
376 nfs4_test_and_free_stateid(server, stateid, cred); in __nfs4_free_revoked_stateid()
380 const nfs4_stateid *stateid, in nfs4_free_revoked_stateid() argument
385 nfs4_stateid_copy(&tmp, stateid); in nfs4_free_revoked_stateid()
424 const nfs4_stateid *stateid = exception->stateid; in nfs4_do_handle_exception() local
432 if (stateid == NULL && state != NULL) in nfs4_do_handle_exception()
433 stateid = &state->stateid; in nfs4_do_handle_exception()
[all …]
Dnfs42proc.c152 if (memcmp(&res->write_res.stateid, &tmp_copy->stateid, in handle_async_copy()
166 memcpy(&copy->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE); in handle_async_copy()
191 nfs42_do_offload_cancel_async(dst, &copy->stateid); in handle_async_copy()
324 .stateid = &args.src_stateid, in nfs42_proc_copy()
328 .stateid = &args.dst_stateid, in nfs42_proc_copy()
417 nfs4_stateid *stateid) in nfs42_do_offload_cancel_async() argument
445 memcpy(&data->args.osa_stateid, stateid, in nfs42_do_offload_cancel_async()
549 nfs4_stateid_copy(&data->args.stateid, &lo->plh_stateid); in nfs42_layoutstat_prepare()
580 nfs4_stateid_match(&data->args.stateid, in nfs42_layoutstat_done()
599 nfs4_stateid_match_other(&data->args.stateid, in nfs42_layoutstat_done()
[all …]
Dcallback_proc.c95 &args->stateid, -ntohl(res)); in nfs4_callback_recall()
99 switch (nfs_async_inode_return_delegation(inode, &args->stateid)) { in nfs4_callback_recall()
110 &args->stateid, -ntohl(res)); in nfs4_callback_recall()
125 const nfs4_stateid *stateid) in nfs_layout_find_inode_by_stateid() argument
135 if (stateid != NULL && in nfs_layout_find_inode_by_stateid()
136 !nfs4_stateid_match_other(stateid, &lo->plh_stateid)) in nfs_layout_find_inode_by_stateid()
197 const nfs4_stateid *stateid) in nfs_layout_find_inode() argument
203 inode = nfs_layout_find_inode_by_stateid(clp, stateid); in nfs_layout_find_inode()
704 tmp_copy->stateid.other, in nfs4_callback_offload()
716 memcpy(&copy->stateid, &args->coa_stateid, NFS4_STATEID_SIZE); in nfs4_callback_offload()
Dnfs4_fs.h185 nfs4_stateid stateid; /* Current stateid: may be delegation */ member
202 nfs4_stateid *stateid; member
307 extern int nfs4_set_rw_stateid(nfs4_stateid *stateid,
480 const nfs4_stateid *stateid);
587 const nfs4_stateid *stateid) in nfs4_state_match_open_stateid_other() argument
590 nfs4_stateid_match_other(&state->open_stateid, stateid); in nfs4_state_match_open_stateid_other()
/kernel/linux/linux-5.10/include/linux/
Dnfs_ssc.h19 struct nfs_fh *src_fh, nfs4_stateid *stateid);
43 struct nfs_fh *src_fh, nfs4_stateid *stateid) in nfs42_ssc_open() argument
46 return (*nfs_ssc_client_tbl.ssc_nfs4_ops->sco_open)(ss_mnt, src_fh, stateid); in nfs42_ssc_open()
Dnfs_xdr.h260 nfs4_stateid stateid; member
270 nfs4_stateid stateid; member
295 nfs4_stateid stateid; member
327 nfs4_stateid stateid; member
335 nfs4_stateid stateid; member
373 nfs4_stateid stateid; member
399 nfs4_stateid stateid; member
483 nfs4_stateid stateid; member
510 nfs4_stateid * stateid; member
516 nfs4_stateid stateid; member
[all …]
/kernel/linux/linux-4.19/include/linux/
Dnfs_xdr.h256 nfs4_stateid stateid; member
266 nfs4_stateid stateid; member
291 nfs4_stateid stateid; member
323 nfs4_stateid stateid; member
331 nfs4_stateid stateid; member
369 nfs4_stateid stateid; member
444 nfs4_stateid stateid; member
471 nfs4_stateid * stateid; member
477 nfs4_stateid stateid; member
487 nfs4_stateid stateid; member
[all …]
/kernel/linux/linux-5.10/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);
/kernel/linux/linux-4.19/fs/nfs/flexfilelayout/
Dflexfilelayoutdev.c257 ret = memcmp(e1->stateid.data, e2->stateid.data, in ff_ds_error_match()
258 sizeof(e1->stateid.data)); in ff_ds_error_match()
322 nfs4_stateid_copy(&dserr->stateid, &mirror->stateid); in ff_layout_track_ds_error()
376 nfs4_stateid *stateid) in nfs4_ff_layout_select_ds_stateid() argument
386 nfs4_stateid_copy(stateid, &mirror->stateid); in nfs4_ff_layout_select_ds_stateid()
536 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
227 nfs4_stateid *stateid);
/kernel/linux/linux-5.10/fs/nfsd/
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()
/kernel/linux/linux-4.19/fs/nfsd/
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()

123