/linux/fs/nfs/ |
H A D | delegation.c | 43 delegation->stateid.type = NFS4_INVALID_STATEID_TYPE; in nfs_mark_delegation_revoked() 148 static int nfs_delegation_claim_locks(struct nfs4_state *state, const nfs4_stateid *stateid) in nfs_delegation_claim_locks() argument 166 status = nfs4_lock_delegation_recall(fl, state, stateid); in nfs_delegation_claim_locks() 181 const nfs4_stateid *stateid, fmode_t type) in nfs_delegation_claim_opens() argument 199 if (!nfs4_stateid_match(&state->stateid, stateid)) in nfs_delegation_claim_opens() 207 err = nfs4_open_delegation_recall(ctx, state, stateid); in nfs_delegation_claim_opens() 209 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() 264 nfs_inode_set_delegation(inode, cred, type, stateid, in nfs_inode_reclaim_delegation() [all …]
|
H A D | delegation.h | 20 nfs4_stateid stateid; member 45 fmode_t type, const nfs4_stateid *stateid, 48 fmode_t type, const nfs4_stateid *stateid, 52 int nfs_async_inode_return_delegation(struct inode *inode, const nfs4_stateid *stateid); 62 void nfs_remove_bad_delegation(struct inode *inode, const nfs4_stateid *stateid); 63 void nfs_delegation_mark_returned(struct inode *inode, const nfs4_stateid *stateid); 74 const nfs4_stateid *stateid, 76 …gation_recall(struct nfs_open_context *ctx, struct nfs4_state *state, const nfs4_stateid *stateid); 77 …ock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid *stateid); 87 const nfs4_stateid *stateid);
|
H A D | nfs4proc.c | 393 nfs4_stateid *stateid, in nfs4_test_and_free_stateid() argument 398 ops->test_and_free_expired(server, stateid, cred); in nfs4_test_and_free_stateid() 402 nfs4_stateid *stateid, in __nfs4_free_revoked_stateid() argument 405 stateid->type = NFS4_REVOKED_STATEID_TYPE; in __nfs4_free_revoked_stateid() 406 nfs4_test_and_free_stateid(server, stateid, cred); in __nfs4_free_revoked_stateid() 410 const nfs4_stateid *stateid, in nfs4_free_revoked_stateid() argument 415 nfs4_stateid_copy(&tmp, stateid); in nfs4_free_revoked_stateid() 463 nfs4_recoverable_stateid(const nfs4_stateid *stateid) in nfs4_recoverable_stateid() argument 465 if (!stateid) in nfs4_recoverable_stateid() 467 switch (stateid->type) { in nfs4_recoverable_stateid() [all …]
|
H A D | pnfs.c | 555 const nfs4_stateid *stateid) in pnfs_init_lseg() argument 564 lseg->pls_seq = be32_to_cpu(stateid->seqid); in pnfs_init_lseg() 1094 const nfs4_stateid *stateid) in pnfs_layout_stateid_blocked() argument 1096 u32 seqid = be32_to_cpu(stateid->seqid); in pnfs_layout_stateid_blocked() 1165 const nfs4_stateid *stateid, in pnfs_alloc_init_layoutget_args() argument 1215 nfs4_stateid_copy(&lgp->args.stateid, stateid); in pnfs_alloc_init_layoutget_args() 1281 const nfs4_stateid *stateid) in pnfs_layoutreturn_free_lsegs() argument 1289 if (stateid && pnfs_layout_is_valid(lo)) { in pnfs_layoutreturn_free_lsegs() 1294 pnfs_set_layout_stateid(lo, stateid, NULL, true); in pnfs_layoutreturn_free_lsegs() 1306 nfs4_stateid *stateid, in pnfs_prepare_layoutreturn() argument [all …]
|
H A D | nfs4trace.h | 560 be32_to_cpu(state->stateid.seqid); 562 nfs_stateid_hash(&state->stateid); 639 be32_to_cpu(state->stateid.seqid); 641 nfs_stateid_hash(&state->stateid); 685 be32_to_cpu(args->stateid.seqid); 687 nfs_stateid_hash(&args->stateid); 739 be32_to_cpu(state->stateid.seqid); 741 nfs_stateid_hash(&state->stateid); 811 be32_to_cpu(state->stateid.seqid); 813 nfs_stateid_hash(&state->stateid); [all …]
|
H A D | nfs42proc.c | 197 if (memcmp(&res->write_res.stateid, &iter->stateid, in handle_async_copy() 211 memcpy(©->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE); in handle_async_copy() 250 nfs42_do_offload_cancel_async(dst, ©->stateid); in handle_async_copy() 431 .stateid = &args.src_stateid, in nfs42_proc_copy() 435 .stateid = &args.dst_stateid, in nfs42_proc_copy() 540 nfs4_stateid *stateid) in nfs42_do_offload_cancel_async() argument 568 memcpy(&data->args.osa_stateid, stateid, in nfs42_do_offload_cancel_async() 646 exception.stateid = &args->cna_src_stateid; in nfs42_proc_copy_notify() 756 nfs4_stateid_copy(&data->args.stateid, &lo->plh_stateid); in nfs42_layoutstat_prepare() 787 nfs4_stateid_match(&data->args.stateid, in nfs42_layoutstat_done() [all …]
|
H A D | callback_proc.c | 102 &args->stateid, -ntohl(res)); in nfs4_callback_recall() 106 switch (nfs_async_inode_return_delegation(inode, &args->stateid)) { in nfs4_callback_recall() 117 &args->stateid, -ntohl(res)); in nfs4_callback_recall() 132 const nfs4_stateid *stateid) in nfs_layout_find_inode_by_stateid() argument 144 if (!nfs4_stateid_match_other(stateid, &lo->plh_stateid)) in nfs_layout_find_inode_by_stateid() 200 const nfs4_stateid *stateid) in nfs_layout_find_inode() argument 204 inode = nfs_layout_find_inode_by_stateid(clp, stateid); in nfs_layout_find_inode() 729 tmp_copy->stateid.other, in nfs4_callback_offload() 741 memcpy(©->stateid, &args->coa_stateid, NFS4_STATEID_SIZE); in nfs4_callback_offload()
|
H A D | nfs4_fs.h | 192 nfs4_stateid stateid; /* Current stateid: may be delegation */ member 210 nfs4_stateid *stateid; member 320 extern int nfs4_set_rw_stateid(nfs4_stateid *stateid, 503 const nfs4_stateid *stateid); 640 const nfs4_stateid *stateid) in nfs4_state_match_open_stateid_other() argument 643 nfs4_stateid_match_other(&state->open_stateid, stateid); in nfs4_state_match_open_stateid_other()
|
H A D | callback_xdr.c | 127 static __be32 decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_stateid() argument 134 memcpy(stateid->data, p, NFS4_STATEID_SIZE); in decode_stateid() 138 static __be32 decode_delegation_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_delegation_stateid() argument 140 stateid->type = NFS4_DELEGATION_STATEID_TYPE; in decode_delegation_stateid() 141 return decode_stateid(xdr, stateid); in decode_delegation_stateid() 198 status = decode_delegation_stateid(xdr, &args->stateid); in decode_recall_args() 209 static __be32 decode_layout_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_layout_stateid() argument 211 stateid->type = NFS4_LAYOUT_STATEID_TYPE; in decode_layout_stateid() 212 return decode_stateid(xdr, stateid); in decode_layout_stateid()
|
H A D | nfs4xdr.c | 1063 const nfs4_stateid *stateid) in encode_nfs4_stateid() argument 1065 encode_opaque_fixed(xdr, stateid->data, NFS4_STATEID_SIZE); in encode_nfs4_stateid() 1210 encode_nfs4_stateid(xdr, &arg->stateid); in encode_close() 1378 encode_nfs4_stateid(xdr, &args->stateid); in encode_locku() 1507 …de_claim_delegate_cur(struct xdr_stream *xdr, const struct qstr *name, const nfs4_stateid *stateid) in encode_claim_delegate_cur() argument 1513 encode_nfs4_stateid(xdr, stateid); in encode_claim_delegate_cur() 1525 static inline void encode_claim_delegate_cur_fh(struct xdr_stream *xdr, const nfs4_stateid *stateid) in encode_claim_delegate_cur_fh() argument 1531 encode_nfs4_stateid(xdr, stateid); in encode_claim_delegate_cur_fh() 1563 encode_nfs4_stateid(xdr, arg->stateid); in encode_open_confirm() 1570 encode_nfs4_stateid(xdr, &arg->stateid); in encode_open_downgrade() [all …]
|
H A D | nfs4state.c | 1402 &state->stateid); in nfs4_schedule_stateid_recovery() 1412 const nfs4_stateid *stateid) in nfs_state_find_lock_state_by_stateid() argument 1419 if (nfs4_stateid_match_or_older(&pos->ls_stateid, stateid)) in nfs_state_find_lock_state_by_stateid() 1426 const nfs4_stateid *stateid) in nfs_state_lock_state_matches_stateid() argument 1432 if (nfs_state_find_lock_state_by_stateid(state, stateid)) in nfs_state_lock_state_matches_stateid() 1440 const nfs4_stateid *stateid) in nfs_inode_find_state_and_recover() argument 1453 if (nfs4_stateid_match_or_older(&state->stateid, stateid) && in nfs_inode_find_state_and_recover() 1459 nfs4_stateid_match_or_older(&state->open_stateid, stateid) && in nfs_inode_find_state_and_recover() 1464 if (nfs_state_lock_state_matches_stateid(state, stateid) && in nfs_inode_find_state_and_recover() 1470 nfs_inode_find_delegation_state_and_recover(inode, stateid); in nfs_inode_find_state_and_recover() [all …]
|
H A D | nfs4file.c | 318 struct nfs_fh *src_fh, nfs4_stateid *stateid) in __nfs42_ssc_open() argument 383 memcpy(&ctx->state->open_stateid.other, &stateid->other, in __nfs42_ssc_open() 385 update_open_stateid(ctx->state, stateid, NULL, filep->f_mode); in __nfs42_ssc_open()
|
H A D | callback.h | 64 nfs4_stateid stateid; member
|
H A D | internal.h | 900 static inline u32 nfs_stateid_hash(const nfs4_stateid *stateid) in nfs_stateid_hash() argument 902 return ~crc32_le(0xFFFFFFFF, &stateid->other[0], in nfs_stateid_hash() 906 static inline u32 nfs_stateid_hash(nfs4_stateid *stateid) in nfs_stateid_hash() argument
|
/linux/include/linux/ |
H A D | nfs_ssc.h | 20 struct nfs_fh *src_fh, nfs4_stateid *stateid); 44 struct nfs_fh *src_fh, nfs4_stateid *stateid) in nfs42_ssc_open() argument 47 return (*nfs_ssc_client_tbl.ssc_nfs4_ops->sco_open)(ss_mnt, src_fh, stateid); in nfs42_ssc_open()
|
H A D | nfs_xdr.h | 262 nfs4_stateid stateid; member 272 nfs4_stateid stateid; member 298 nfs4_stateid stateid; member 330 nfs4_stateid stateid; member 338 nfs4_stateid stateid; member 376 nfs4_stateid stateid; member 402 nfs4_stateid stateid; member 458 nfs4_stateid stateid; member 502 nfs4_stateid stateid; member 525 nfs4_stateid * stateid; member [all …]
|
/linux/fs/nfs/flexfilelayout/ |
H A D | flexfilelayoutdev.c | 209 ret = memcmp(e1->stateid.data, e2->stateid.data, in ff_ds_error_match() 210 sizeof(e1->stateid.data)); in ff_ds_error_match() 274 nfs4_stateid_copy(&dserr->stateid, &mirror->stateid); in ff_layout_track_ds_error() 315 nfs4_stateid *stateid) in nfs4_ff_layout_select_ds_stateid() argument 318 nfs4_stateid_copy(stateid, &mirror->stateid); in nfs4_ff_layout_select_ds_stateid() 497 p = xdr_encode_opaque_fixed(p, &err->stateid, in ff_layout_encode_ds_ioerr()
|
H A D | flexfilelayout.h | 50 nfs4_stateid stateid; member 83 nfs4_stateid stateid; member 209 nfs4_stateid *stateid);
|
H A D | flexfilelayout.c | 82 static int decode_pnfs_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_pnfs_stateid() argument 89 stateid->type = NFS4_PNFS_DS_STATEID_TYPE; in decode_pnfs_stateid() 90 memcpy(stateid->data, p, NFS4_STATEID_SIZE); in decode_pnfs_stateid() 469 rc = decode_pnfs_stateid(&stream, &fls->mirror_array[i]->stateid); in ff_layout_alloc_lseg() 1813 nfs4_ff_layout_select_ds_stateid(mirror, &hdr->args.stateid); in ff_layout_read_pagelist() 1890 nfs4_ff_layout_select_ds_stateid(mirror, &hdr->args.stateid); in ff_layout_write_pagelist() 2133 const nfs4_stateid *stateid, in ff_layout_encode_ff_iostat_head() argument 2141 encode_opaque_fixed(xdr, stateid->data, NFS4_STATEID_SIZE); in ff_layout_encode_ff_iostat_head() 2152 const nfs4_stateid *stateid, in ff_layout_encode_ff_iostat() argument 2155 ff_layout_encode_ff_iostat_head(xdr, stateid, devinfo); in ff_layout_encode_ff_iostat() [all …]
|
/linux/fs/nfsd/ |
H A 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()
|
H A D | nfs4state.c | 79 #define ZERO_STATEID(stateid) (!memcmp((stateid), &zero_stateid, sizeof(stateid_t))) argument 80 #define ONE_STATEID(stateid) (!memcmp((stateid), &one_stateid, sizeof(stateid_t))) argument 81 #define CURRENT_STATEID(stateid) (!memcmp((stateid), ¤tstateid, sizeof(stateid_t))) argument 82 #define CLOSE_STATEID(stateid) (!memcmp((stateid), &close_stateid, sizeof(stateid_t))) argument 6778 check_special_stateids(struct net *net, svc_fh *current_fh, stateid_t *stateid, int flags) in check_special_stateids() argument 6780 if (ONE_STATEID(stateid) && (flags & RD_STATE)) in check_special_stateids() 6845 static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid) in nfsd4_validate_stateid() argument 6850 if (ZERO_STATEID(stateid) || ONE_STATEID(stateid) || in nfsd4_validate_stateid() 6851 CLOSE_STATEID(stateid)) in nfsd4_validate_stateid() 6854 s = find_stateid_locked(cl, stateid); in nfsd4_validate_stateid() [all …]
|
H A D | flexfilelayoutxdr.h | 41 stateid_t stateid; member
|
H A D | nfs4proc.c | 1185 stateid_t *stateid = &write->wr_stateid; in nfsd4_write() local 1199 stateid, WR_STATE, &nf, NULL); in nfsd4_write() 1390 nfs4_stateid *stateid); 1601 copy->stateid.seqid = cpu_to_be32(s_stid->si_generation); in nfsd4_setup_inter_ssc() 1602 memcpy(copy->stateid.other, (void *)&s_stid->si_opaque, in nfsd4_setup_inter_ssc() 1651 nfs4_stateid *stateid) in nfs42_ssc_open() argument 1786 memcpy(&dst->stateid, &src->stateid, sizeof(src->stateid)); in dup_copy_fields() 1844 ©->c_fh, ©->stateid); in nfsd4_do_async_copy() 1976 find_async_copy_locked(struct nfs4_client *clp, stateid_t *stateid) in find_async_copy_locked() argument 1983 if (memcmp(©->cp_stateid.cs_stid, stateid, NFS4_STATEID_SIZE)) in find_async_copy_locked() [all …]
|
H A D | pnfs.h | 56 struct nfsd4_compound_state *cstate, stateid_t *stateid,
|
H A D | nfs4layouts.c | 281 struct nfsd4_compound_state *cstate, stateid_t *stateid, in nfsd4_preprocess_layout_stateid() argument 292 status = nfsd4_lookup_stateid(cstate, stateid, typemask, 0, &stid, in nfsd4_preprocess_layout_stateid() 316 if (nfsd4_stateid_generation_after(stateid, &stid->sc_stateid)) in nfsd4_preprocess_layout_stateid()
|