/kernel/linux/linux-5.10/fs/nfs/ |
D | delegation.c | 43 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 …]
|
D | delegation.h | 20 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);
|
D | nfs4proc.c | 386 nfs4_stateid *stateid, in nfs4_test_and_free_stateid() argument 391 ops->test_and_free_expired(server, stateid, cred); in nfs4_test_and_free_stateid() 395 nfs4_stateid *stateid, in __nfs4_free_revoked_stateid() argument 398 stateid->type = NFS4_REVOKED_STATEID_TYPE; in __nfs4_free_revoked_stateid() 399 nfs4_test_and_free_stateid(server, stateid, cred); in __nfs4_free_revoked_stateid() 403 const nfs4_stateid *stateid, in nfs4_free_revoked_stateid() argument 408 nfs4_stateid_copy(&tmp, stateid); in nfs4_free_revoked_stateid() 455 nfs4_recoverable_stateid(const nfs4_stateid *stateid) in nfs4_recoverable_stateid() argument 457 if (!stateid) in nfs4_recoverable_stateid() 459 switch (stateid->type) { in nfs4_recoverable_stateid() [all …]
|
D | pnfs.c | 542 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 …]
|
D | nfs4trace.h | 775 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 …]
|
D | nfs42proc.c | 189 if (memcmp(&res->write_res.stateid, &tmp_copy->stateid, in handle_async_copy() 203 memcpy(©->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE); in handle_async_copy() 242 nfs42_do_offload_cancel_async(dst, ©->stateid); in handle_async_copy() 403 .stateid = &args.src_stateid, in nfs42_proc_copy() 407 .stateid = &args.dst_stateid, in nfs42_proc_copy() 509 nfs4_stateid *stateid) in nfs42_do_offload_cancel_async() argument 537 memcpy(&data->args.osa_stateid, stateid, in nfs42_do_offload_cancel_async() 614 exception.stateid = &args->cna_src_stateid; in nfs42_proc_copy_notify() 723 nfs4_stateid_copy(&data->args.stateid, &lo->plh_stateid); in nfs42_layoutstat_prepare() 754 nfs4_stateid_match(&data->args.stateid, in nfs42_layoutstat_done() [all …]
|
D | callback_proc.c | 93 &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(©->stateid, &args->coa_stateid, NFS4_STATEID_SIZE); in nfs4_callback_offload()
|
D | nfs4_fs.h | 189 nfs4_stateid stateid; /* Current stateid: may be delegation */ member 207 nfs4_stateid *stateid; member 316 extern int nfs4_set_rw_stateid(nfs4_stateid *stateid, 498 const nfs4_stateid *stateid); 634 const nfs4_stateid *stateid) in nfs4_state_match_open_stateid_other() argument 637 nfs4_stateid_match_other(&state->open_stateid, stateid); in nfs4_state_match_open_stateid_other()
|
D | callback_xdr.c | 125 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()
|
D | nfs4state.c | 1396 &state->stateid); in nfs4_schedule_stateid_recovery() 1406 const nfs4_stateid *stateid) in nfs_state_find_lock_state_by_stateid() argument 1413 if (nfs4_stateid_match_or_older(&pos->ls_stateid, stateid)) in nfs_state_find_lock_state_by_stateid() 1420 const nfs4_stateid *stateid) in nfs_state_lock_state_matches_stateid() argument 1426 if (nfs_state_find_lock_state_by_stateid(state, stateid)) in nfs_state_lock_state_matches_stateid() 1434 const nfs4_stateid *stateid) in nfs_inode_find_state_and_recover() argument 1447 if (nfs4_stateid_match_or_older(&state->stateid, stateid) && in nfs_inode_find_state_and_recover() 1453 nfs4_stateid_match_or_older(&state->open_stateid, stateid) && in nfs_inode_find_state_and_recover() 1458 if (nfs_state_lock_state_matches_stateid(state, stateid) && in nfs_inode_find_state_and_recover() 1464 nfs_inode_find_delegation_state_and_recover(inode, stateid); in nfs_inode_find_state_and_recover() [all …]
|
D | nfs4xdr.c | 1051 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 …]
|
D | nfs4file.c | 322 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()
|
D | callback.h | 81 nfs4_stateid stateid; member
|
/kernel/linux/linux-5.10/include/linux/ |
D | nfs_ssc.h | 19 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()
|
D | nfs_xdr.h | 260 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-5.10/fs/nfs/flexfilelayout/ |
D | flexfilelayoutdev.c | 207 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()
|
D | flexfilelayout.h | 50 nfs4_stateid stateid; member 83 nfs4_stateid stateid; member 209 nfs4_stateid *stateid);
|
D | flexfilelayout.c | 75 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() 1790 nfs4_ff_layout_select_ds_stateid(mirror, &hdr->args.stateid); in ff_layout_read_pagelist() 1859 nfs4_ff_layout_select_ds_stateid(mirror, &hdr->args.stateid); in ff_layout_write_pagelist() 2031 const nfs4_stateid *stateid, in ff_layout_encode_ff_iostat_head() argument 2039 encode_opaque_fixed(xdr, stateid->data, NFS4_STATEID_SIZE); in ff_layout_encode_ff_iostat_head() 2050 const nfs4_stateid *stateid, in ff_layout_encode_ff_iostat() argument 2053 ff_layout_encode_ff_iostat_head(xdr, stateid, devinfo); in ff_layout_encode_ff_iostat() [all …]
|
/kernel/linux/linux-5.10/fs/nfsd/ |
D | flexfilelayoutxdr.c | 62 *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()
|
D | nfs4state.c | 75 #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), ¤tstateid, 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() 5659 if (!same_clid(&stateid->si_opaque.so_clid, &cl->cl_clientid)) in nfsd4_validate_stateid() [all …]
|
D | flexfilelayoutxdr.h | 41 stateid_t stateid; member
|
D | xdr4.h | 180 stateid_t stateid; member 193 #define lk_resp_stateid u.ok.stateid 581 nfs4_stateid stateid; member 598 stateid_t stateid; member
|
D | pnfs.h | 55 struct nfsd4_compound_state *cstate, stateid_t *stateid,
|
D | nfs4proc.c | 1005 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 ©->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(©->cp_stateid.stid, stateid, NFS4_STATEID_SIZE)) in find_async_copy() [all …]
|
D | state.h | 634 stateid_t *stateid, int flags, struct nfsd_file **filp, 637 stateid_t *stateid, unsigned char typemask,
|