| /Linux-v5.4/fs/nfs/ |
| D | delegation.c | 105 static int nfs_delegation_claim_locks(struct nfs4_state *state, const nfs4_stateid *stateid) in nfs_delegation_claim_locks() argument 123 status = nfs4_lock_delegation_recall(fl, state, stateid); in nfs_delegation_claim_locks() 138 const nfs4_stateid *stateid, fmode_t type) in nfs_delegation_claim_opens() argument 157 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 …]
|
| D | delegation.h | 20 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); 65 int nfs4_proc_delegreturn(struct inode *inode, const struct cred *cred, const nfs4_stateid *stateid… 66 …gation_recall(struct nfs_open_context *ctx, struct nfs4_state *state, const nfs4_stateid *stateid); 67 …ock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid *stateid); 77 const nfs4_stateid *stateid);
|
| D | pnfs.c | 495 const nfs4_stateid *stateid) in pnfs_init_lseg() argument 503 lseg->pls_seq = be32_to_cpu(stateid->seqid); in pnfs_init_lseg() 941 const nfs4_stateid *stateid) in pnfs_layout_stateid_blocked() argument 943 u32 seqid = be32_to_cpu(stateid->seqid); in pnfs_layout_stateid_blocked() 1012 const nfs4_stateid *stateid, in pnfs_alloc_init_layoutget_args() argument 1062 nfs4_stateid_copy(&lgp->args.stateid, stateid); in pnfs_alloc_init_layoutget_args() 1098 const nfs4_stateid *stateid) in pnfs_layoutreturn_free_lsegs() argument 1107 if (stateid) { in pnfs_layoutreturn_free_lsegs() 1112 pnfs_set_layout_stateid(lo, stateid, true); in pnfs_layoutreturn_free_lsegs() 1124 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() 432 nfs4_recoverable_stateid(const nfs4_stateid *stateid) in nfs4_recoverable_stateid() argument 434 if (!stateid) in nfs4_recoverable_stateid() 436 switch (stateid->type) { in nfs4_recoverable_stateid() [all …]
|
| D | nfs4trace.h | 636 be32_to_cpu(state->stateid.seqid); 638 nfs_stateid_hash(&state->stateid); 715 be32_to_cpu(state->stateid.seqid); 717 nfs_stateid_hash(&state->stateid); 761 be32_to_cpu(args->stateid.seqid); 763 nfs_stateid_hash(&args->stateid); 833 be32_to_cpu(state->stateid.seqid); 835 nfs_stateid_hash(&state->stateid); 905 be32_to_cpu(state->stateid.seqid); 907 nfs_stateid_hash(&state->stateid); [all …]
|
| D | nfs42proc.c | 152 if (memcmp(&res->write_res.stateid, &tmp_copy->stateid, in handle_async_copy() 166 memcpy(©->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE); in handle_async_copy() 191 nfs42_do_offload_cancel_async(dst, ©->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 …]
|
| 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() 714 tmp_copy->stateid.other, in nfs4_callback_offload() 726 memcpy(©->stateid, &args->coa_stateid, NFS4_STATEID_SIZE); in nfs4_callback_offload()
|
| D | nfs4_fs.h | 186 nfs4_stateid stateid; /* Current stateid: may be delegation */ member 204 nfs4_stateid *stateid; member 310 extern int nfs4_set_rw_stateid(nfs4_stateid *stateid, 476 const nfs4_stateid *stateid); 590 const nfs4_stateid *stateid) in nfs4_state_match_open_stateid_other() argument 593 nfs4_stateid_match_other(&state->open_stateid, stateid); in nfs4_state_match_open_stateid_other()
|
| D | callback_xdr.c | 124 static __be32 decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_stateid() argument 131 memcpy(stateid->data, p, NFS4_STATEID_SIZE); in decode_stateid() 135 static __be32 decode_delegation_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_delegation_stateid() argument 137 stateid->type = NFS4_DELEGATION_STATEID_TYPE; in decode_delegation_stateid() 138 return decode_stateid(xdr, stateid); in decode_delegation_stateid() 195 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()
|
| 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() 1201 encode_nfs4_stateid(xdr, &arg->stateid); in encode_close() 1369 encode_nfs4_stateid(xdr, &args->stateid); in encode_locku() 1500 …de_claim_delegate_cur(struct xdr_stream *xdr, const struct qstr *name, const nfs4_stateid *stateid) in encode_claim_delegate_cur() argument 1506 encode_nfs4_stateid(xdr, stateid); in encode_claim_delegate_cur() 1518 static inline void encode_claim_delegate_cur_fh(struct xdr_stream *xdr, const nfs4_stateid *stateid) in encode_claim_delegate_cur_fh() argument 1524 encode_nfs4_stateid(xdr, stateid); in encode_claim_delegate_cur_fh() 1556 encode_nfs4_stateid(xdr, arg->stateid); in encode_open_confirm() 1563 encode_nfs4_stateid(xdr, &arg->stateid); in encode_open_downgrade() [all …]
|
| D | nfs4state.c | 1393 &state->stateid); in nfs4_schedule_stateid_recovery() 1403 const nfs4_stateid *stateid) in nfs_state_find_lock_state_by_stateid() argument 1410 if (nfs4_stateid_match_other(&pos->ls_stateid, stateid)) in nfs_state_find_lock_state_by_stateid() 1417 const nfs4_stateid *stateid) in nfs_state_lock_state_matches_stateid() argument 1423 if (nfs_state_find_lock_state_by_stateid(state, stateid)) in nfs_state_lock_state_matches_stateid() 1431 const nfs4_stateid *stateid) in nfs_inode_find_state_and_recover() argument 1444 if (nfs4_stateid_match_other(&state->stateid, stateid) && in nfs_inode_find_state_and_recover() 1449 if (nfs4_stateid_match_other(&state->open_stateid, stateid) && in nfs_inode_find_state_and_recover() 1454 if (nfs_state_lock_state_matches_stateid(state, stateid) && in nfs_inode_find_state_and_recover() 1460 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 | 733 static inline u32 nfs_stateid_hash(const nfs4_stateid *stateid) in nfs_stateid_hash() argument 735 return ~crc32_le(0xFFFFFFFF, &stateid->other[0], in nfs_stateid_hash() 743 static inline u32 nfs_stateid_hash(nfs4_stateid *stateid) in nfs_stateid_hash() argument
|
| D | nfs42xdr.c | 223 encode_nfs4_stateid(xdr, &args->stateid); in encode_layoutstats() 277 encode_nfs4_stateid(xdr, &args->stateid); in encode_layouterror() 480 status = decode_opaque_fixed(xdr, &res->stateid, in decode_write_response()
|
| /Linux-v5.4/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 395 nfs4_stateid stateid; member 479 nfs4_stateid stateid; member 506 nfs4_stateid * stateid; member 512 nfs4_stateid stateid; member [all …]
|
| /Linux-v5.4/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 | 72 static int decode_pnfs_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_pnfs_stateid() argument 79 stateid->type = NFS4_PNFS_DS_STATEID_TYPE; in decode_pnfs_stateid() 80 memcpy(stateid->data, p, NFS4_STATEID_SIZE); in decode_pnfs_stateid() 454 rc = decode_pnfs_stateid(&stream, &fls->mirror_array[i]->stateid); in ff_layout_alloc_lseg() 1820 nfs4_ff_layout_select_ds_stateid(mirror, &hdr->args.stateid); in ff_layout_read_pagelist() 1889 nfs4_ff_layout_select_ds_stateid(mirror, &hdr->args.stateid); in ff_layout_write_pagelist() 2034 const nfs4_stateid *stateid, in ff_layout_encode_ff_iostat_head() argument 2042 encode_opaque_fixed(xdr, stateid->data, NFS4_STATEID_SIZE); in ff_layout_encode_ff_iostat_head() 2053 const nfs4_stateid *stateid, in ff_layout_encode_ff_iostat() argument 2056 ff_layout_encode_ff_iostat_head(xdr, stateid, devinfo); in ff_layout_encode_ff_iostat() [all …]
|
| /Linux-v5.4/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 | 74 #define ZERO_STATEID(stateid) (!memcmp((stateid), &zero_stateid, sizeof(stateid_t))) argument 75 #define ONE_STATEID(stateid) (!memcmp((stateid), &one_stateid, sizeof(stateid_t))) argument 76 #define CURRENT_STATEID(stateid) (!memcmp((stateid), ¤tstateid, sizeof(stateid_t))) argument 77 #define CLOSE_STATEID(stateid) (!memcmp((stateid), &close_stateid, sizeof(stateid_t))) argument 5378 check_special_stateids(struct net *net, svc_fh *current_fh, stateid_t *stateid, int flags) in check_special_stateids() argument 5380 if (ONE_STATEID(stateid) && (flags & RD_STATE)) in check_special_stateids() 5452 static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid) in nfsd4_validate_stateid() argument 5457 if (ZERO_STATEID(stateid) || ONE_STATEID(stateid) || in nfsd4_validate_stateid() 5458 CLOSE_STATEID(stateid)) in nfsd4_validate_stateid() 5461 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 | xdr4.h | 180 stateid_t stateid; member 193 #define lk_resp_stateid u.ok.stateid 564 stateid_t stateid; member
|
| D | state.h | 620 stateid_t *stateid, int flags, struct nfsd_file **filp); 622 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()
|