/Linux-v4.19/fs/nfs/ |
D | delegation.c | 96 …on_claim_locks(struct nfs_open_context *ctx, struct nfs4_state *state, const nfs4_stateid *stateid) in nfs_delegation_claim_locks() argument 114 status = nfs4_lock_delegation_recall(fl, state, stateid); in nfs_delegation_claim_locks() 129 const nfs4_stateid *stateid, fmode_t type) in nfs_delegation_claim_opens() argument 148 if (!nfs4_stateid_match(&state->stateid, stateid)) in nfs_delegation_claim_opens() 156 err = nfs4_open_delegation_recall(ctx, state, stateid, type); in nfs_delegation_claim_opens() 158 err = nfs_delegation_claim_locks(ctx, state, stateid); in nfs_delegation_claim_opens() 182 const nfs4_stateid *stateid, in nfs_inode_reclaim_delegation() argument 193 nfs4_stateid_copy(&delegation->stateid, stateid); in nfs_inode_reclaim_delegation() 210 nfs_inode_set_delegation(inode, cred, type, stateid, pagemod_limit); in nfs_inode_reclaim_delegation() 220 &delegation->stateid, in nfs_do_return_delegation() [all …]
|
D | delegation.h | 20 nfs4_stateid stateid; member 40 fmode_t type, const nfs4_stateid *stateid, unsigned long pagemod_limit); 42 fmode_t type, const nfs4_stateid *stateid, unsigned long pagemod_limit); 44 int nfs_async_inode_return_delegation(struct inode *inode, const nfs4_stateid *stateid); 54 void nfs_remove_bad_delegation(struct inode *inode, const nfs4_stateid *stateid); 63 int nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, const nfs4_stateid *stateid, … 64 …struct nfs_open_context *ctx, struct nfs4_state *state, const nfs4_stateid *stateid, fmode_t type); 65 …ock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid *stateid); 74 const nfs4_stateid *stateid);
|
D | nfs4trace.h | 417 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 …]
|
D | pnfs.c | 485 const nfs4_stateid *stateid) in pnfs_init_lseg() argument 493 lseg->pls_seq = be32_to_cpu(stateid->seqid); in pnfs_init_lseg() 918 const nfs4_stateid *stateid) in pnfs_layout_stateid_blocked() argument 920 u32 seqid = be32_to_cpu(stateid->seqid); in pnfs_layout_stateid_blocked() 989 const nfs4_stateid *stateid, in pnfs_alloc_init_layoutget_args() argument 1032 nfs4_stateid_copy(&lgp->args.stateid, stateid); in pnfs_alloc_init_layoutget_args() 1068 const nfs4_stateid *stateid) in pnfs_layoutreturn_free_lsegs() argument 1077 if (stateid) { in pnfs_layoutreturn_free_lsegs() 1082 pnfs_set_layout_stateid(lo, stateid, true); in pnfs_layoutreturn_free_lsegs() 1094 nfs4_stateid *stateid, in pnfs_prepare_layoutreturn() argument [all …]
|
D | nfs4proc.c | 363 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 …]
|
D | nfs42proc.c | 148 if (memcmp(&res->write_res.stateid, ©->stateid, in handle_async_copy() 165 memcpy(©->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE); in handle_async_copy() 190 nfs42_do_offload_cancel_async(dst, ©->stateid); in handle_async_copy() 323 .stateid = &args.src_stateid, in nfs42_proc_copy() 327 .stateid = &args.dst_stateid, in nfs42_proc_copy() 419 nfs4_stateid *stateid) in nfs42_do_offload_cancel_async() argument 447 memcpy(&data->args.osa_stateid, stateid, in nfs42_do_offload_cancel_async() 551 nfs4_stateid_copy(&data->args.stateid, &lo->plh_stateid); in nfs42_layoutstat_prepare() 582 nfs4_stateid_match(&data->args.stateid, in nfs42_layoutstat_done() 601 nfs4_stateid_match_other(&data->args.stateid, in nfs42_layoutstat_done() [all …]
|
D | callback_proc.c | 95 &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 133 if (stateid != NULL && in nfs_layout_find_inode_by_stateid() 134 !nfs4_stateid_match_other(stateid, &lo->plh_stateid)) in nfs_layout_find_inode_by_stateid() 195 const nfs4_stateid *stateid) in nfs_layout_find_inode() argument 201 inode = nfs_layout_find_inode_by_stateid(clp, stateid); in nfs_layout_find_inode() 698 copy->stateid.other, in nfs4_callback_offload() 715 memcpy(©->stateid, &args->coa_stateid, NFS4_STATEID_SIZE); in nfs4_callback_offload()
|
D | nfs4_fs.h | 183 nfs4_stateid stateid; /* Current stateid: may be delegation */ member 200 nfs4_stateid *stateid; member 305 extern int nfs4_set_rw_stateid(nfs4_stateid *stateid, 477 const nfs4_stateid *stateid); 584 const nfs4_stateid *stateid) in nfs4_state_match_open_stateid_other() argument 587 nfs4_stateid_match_other(&state->open_stateid, stateid); in nfs4_state_match_open_stateid_other()
|
D | callback_xdr.c | 134 static __be32 decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_stateid() argument 141 memcpy(stateid->data, p, NFS4_STATEID_SIZE); in decode_stateid() 145 static __be32 decode_delegation_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_delegation_stateid() argument 147 stateid->type = NFS4_DELEGATION_STATEID_TYPE; in decode_delegation_stateid() 148 return decode_stateid(xdr, stateid); in decode_delegation_stateid() 205 status = decode_delegation_stateid(xdr, &args->stateid); in decode_recall_args() 216 static __be32 decode_layout_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_layout_stateid() argument 218 stateid->type = NFS4_LAYOUT_STATEID_TYPE; in decode_layout_stateid() 219 return decode_stateid(xdr, stateid); in decode_layout_stateid()
|
D | nfs4xdr.c | 1048 static void encode_nfs4_stateid(struct xdr_stream *xdr, const nfs4_stateid *stateid) in encode_nfs4_stateid() argument 1050 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 | nfs4state.c | 1394 &state->stateid); in nfs4_schedule_stateid_recovery() 1404 const nfs4_stateid *stateid) in nfs_state_find_lock_state_by_stateid() argument 1411 if (nfs4_stateid_match_other(&pos->ls_stateid, stateid)) in nfs_state_find_lock_state_by_stateid() 1418 const nfs4_stateid *stateid) in nfs_state_lock_state_matches_stateid() argument 1424 if (nfs_state_find_lock_state_by_stateid(state, stateid)) in nfs_state_lock_state_matches_stateid() 1432 const nfs4_stateid *stateid) in nfs_inode_find_state_and_recover() argument 1445 if (nfs4_stateid_match_other(&state->stateid, stateid) && in nfs_inode_find_state_and_recover() 1450 if (nfs4_stateid_match_other(&state->open_stateid, stateid) && in nfs_inode_find_state_and_recover() 1455 if (nfs_state_lock_state_matches_stateid(state, stateid) && in nfs_inode_find_state_and_recover() 1461 nfs_inode_find_delegation_state_and_recover(inode, stateid); in nfs_inode_find_state_and_recover() [all …]
|
D | callback.h | 81 nfs4_stateid stateid; member
|
D | internal.h | 739 static inline u32 nfs_stateid_hash(const nfs4_stateid *stateid) in nfs_stateid_hash() argument 741 return ~crc32_le(0xFFFFFFFF, &stateid->other[0], in nfs_stateid_hash() 749 static inline u32 nfs_stateid_hash(nfs4_stateid *stateid) in nfs_stateid_hash() argument
|
D | nfs42xdr.c | 194 encode_nfs4_stateid(xdr, &args->stateid); in encode_layoutstats() 402 status = decode_opaque_fixed(xdr, &res->stateid, in decode_write_response()
|
/Linux-v4.19/include/linux/ |
D | nfs_xdr.h | 256 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 …]
|
/Linux-v4.19/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 | 72 #define ZERO_STATEID(stateid) (!memcmp((stateid), &zero_stateid, sizeof(stateid_t))) argument 73 #define ONE_STATEID(stateid) (!memcmp((stateid), &one_stateid, sizeof(stateid_t))) argument 74 #define CURRENT_STATEID(stateid) (!memcmp((stateid), ¤tstateid, sizeof(stateid_t))) argument 75 #define CLOSE_STATEID(stateid) (!memcmp((stateid), &close_stateid, sizeof(stateid_t))) argument 4897 check_special_stateids(struct net *net, svc_fh *current_fh, stateid_t *stateid, int flags) in check_special_stateids() argument 4899 if (ONE_STATEID(stateid) && (flags & RD_STATE)) in check_special_stateids() 4971 static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid) in nfsd4_validate_stateid() argument 4976 if (ZERO_STATEID(stateid) || ONE_STATEID(stateid) || in nfsd4_validate_stateid() 4977 CLOSE_STATEID(stateid)) in nfsd4_validate_stateid() 4980 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 | pnfs.h | 55 struct nfsd4_compound_state *cstate, stateid_t *stateid,
|
D | state.h | 605 stateid_t *stateid, int flags, struct file **filp, bool *tmp_file); 607 stateid_t *stateid, unsigned char typemask,
|
D | nfs4layouts.c | 266 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()
|
D | xdr4.h | 180 stateid_t stateid; member 193 #define lk_resp_stateid u.ok.stateid
|
/Linux-v4.19/fs/nfs/flexfilelayout/ |
D | flexfilelayoutdev.c | 257 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() 517 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
|
D | flexfilelayout.c | 70 static int decode_pnfs_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_pnfs_stateid() argument 77 stateid->type = NFS4_PNFS_DS_STATEID_TYPE; in decode_pnfs_stateid() 78 memcpy(stateid->data, p, NFS4_STATEID_SIZE); in decode_pnfs_stateid() 452 rc = decode_pnfs_stateid(&stream, &fls->mirror_array[i]->stateid); in ff_layout_alloc_lseg() 1367 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in ff_layout_read_prepare_v4() 1548 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in ff_layout_write_prepare_v4() 1945 const nfs4_stateid *stateid, in ff_layout_encode_ff_iostat_head() argument 1953 encode_opaque_fixed(xdr, stateid->data, NFS4_STATEID_SIZE); in ff_layout_encode_ff_iostat_head() 1964 const nfs4_stateid *stateid, in ff_layout_encode_ff_iostat() argument 1967 ff_layout_encode_ff_iostat_head(xdr, stateid, devinfo); in ff_layout_encode_ff_iostat()
|