/openbmc/linux/fs/nfs/ |
H A 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 …]
|
H A 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);
|
H A 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() 1014 const nfs4_stateid *stateid) in pnfs_layout_stateid_blocked() argument 1016 u32 seqid = be32_to_cpu(stateid->seqid); in pnfs_layout_stateid_blocked() 1085 const nfs4_stateid *stateid, in pnfs_alloc_init_layoutget_args() argument 1135 nfs4_stateid_copy(&lgp->args.stateid, stateid); in pnfs_alloc_init_layoutget_args() 1169 const nfs4_stateid *stateid) in pnfs_layoutreturn_free_lsegs() argument 1177 if (stateid && pnfs_layout_is_valid(lo)) { in pnfs_layoutreturn_free_lsegs() 1182 pnfs_set_layout_stateid(lo, stateid, NULL, true); in pnfs_layoutreturn_free_lsegs() 1194 nfs4_stateid *stateid, in pnfs_prepare_layoutreturn() argument [all …]
|
H A D | nfs4proc.c | 381 nfs4_stateid *stateid, in nfs4_test_and_free_stateid() argument 386 ops->test_and_free_expired(server, stateid, cred); in nfs4_test_and_free_stateid() 390 nfs4_stateid *stateid, in __nfs4_free_revoked_stateid() argument 393 stateid->type = NFS4_REVOKED_STATEID_TYPE; in __nfs4_free_revoked_stateid() 394 nfs4_test_and_free_stateid(server, stateid, cred); in __nfs4_free_revoked_stateid() 398 const nfs4_stateid *stateid, in nfs4_free_revoked_stateid() argument 403 nfs4_stateid_copy(&tmp, stateid); in nfs4_free_revoked_stateid() 451 nfs4_recoverable_stateid(const nfs4_stateid *stateid) in nfs4_recoverable_stateid() argument 453 if (!stateid) in nfs4_recoverable_stateid() 455 switch (stateid->type) { in nfs4_recoverable_stateid() [all …]
|
H A D | nfs4trace.h | 530 be32_to_cpu(state->stateid.seqid); 532 nfs_stateid_hash(&state->stateid); 609 be32_to_cpu(state->stateid.seqid); 611 nfs_stateid_hash(&state->stateid); 655 be32_to_cpu(args->stateid.seqid); 657 nfs_stateid_hash(&args->stateid); 709 be32_to_cpu(state->stateid.seqid); 711 nfs_stateid_hash(&state->stateid); 781 be32_to_cpu(state->stateid.seqid); 783 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 | 98 &args->stateid, -ntohl(res)); in nfs4_callback_recall() 102 switch (nfs_async_inode_return_delegation(inode, &args->stateid)) { in nfs4_callback_recall() 113 &args->stateid, -ntohl(res)); in nfs4_callback_recall() 128 const nfs4_stateid *stateid) in nfs_layout_find_inode_by_stateid() argument 140 if (!nfs4_stateid_match_other(stateid, &lo->plh_stateid)) in nfs_layout_find_inode_by_stateid() 196 const nfs4_stateid *stateid) in nfs_layout_find_inode() argument 200 inode = nfs_layout_find_inode_by_stateid(clp, stateid); in nfs_layout_find_inode() 715 tmp_copy->stateid.other, in nfs4_callback_offload() 727 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 319 extern int nfs4_set_rw_stateid(nfs4_stateid *stateid, 502 const nfs4_stateid *stateid); 638 const nfs4_stateid *stateid) in nfs4_state_match_open_stateid_other() argument 641 nfs4_stateid_match_other(&state->open_stateid, stateid); in nfs4_state_match_open_stateid_other()
|
H A 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()
|
H A D | nfs4state.c | 1416 &state->stateid); in nfs4_schedule_stateid_recovery() 1426 const nfs4_stateid *stateid) in nfs_state_find_lock_state_by_stateid() argument 1433 if (nfs4_stateid_match_or_older(&pos->ls_stateid, stateid)) in nfs_state_find_lock_state_by_stateid() 1440 const nfs4_stateid *stateid) in nfs_state_lock_state_matches_stateid() argument 1446 if (nfs_state_find_lock_state_by_stateid(state, stateid)) in nfs_state_lock_state_matches_stateid() 1454 const nfs4_stateid *stateid) in nfs_inode_find_state_and_recover() argument 1467 if (nfs4_stateid_match_or_older(&state->stateid, stateid) && in nfs_inode_find_state_and_recover() 1473 nfs4_stateid_match_or_older(&state->open_stateid, stateid) && in nfs_inode_find_state_and_recover() 1478 if (nfs_state_lock_state_matches_stateid(state, stateid) && in nfs_inode_find_state_and_recover() 1484 nfs_inode_find_delegation_state_and_recover(inode, stateid); in nfs_inode_find_state_and_recover() [all …]
|
H A D | nfs4xdr.c | 1063 static void encode_nfs4_stateid(struct xdr_stream *xdr, const nfs4_stateid *stateid) in encode_nfs4_stateid() argument 1065 encode_opaque_fixed(xdr, stateid, 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() 1509 …de_claim_delegate_cur(struct xdr_stream *xdr, const struct qstr *name, const nfs4_stateid *stateid) in encode_claim_delegate_cur() argument 1515 encode_nfs4_stateid(xdr, stateid); in encode_claim_delegate_cur() 1527 static inline void encode_claim_delegate_cur_fh(struct xdr_stream *xdr, const nfs4_stateid *stateid) in encode_claim_delegate_cur_fh() argument 1533 encode_nfs4_stateid(xdr, stateid); in encode_claim_delegate_cur_fh() 1565 encode_nfs4_stateid(xdr, arg->stateid); in encode_open_confirm() 1572 encode_nfs4_stateid(xdr, &arg->stateid); in encode_open_downgrade() [all …]
|
H A D | nfs4file.c | 317 struct nfs_fh *src_fh, nfs4_stateid *stateid) in __nfs42_ssc_open() argument 382 memcpy(&ctx->state->open_stateid.other, &stateid->other, in __nfs42_ssc_open() 384 update_open_stateid(ctx->state, stateid, NULL, filep->f_mode); in __nfs42_ssc_open()
|
H A D | callback.h | 81 nfs4_stateid stateid; member
|
/openbmc/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 486 nfs4_stateid stateid; member 512 nfs4_stateid * stateid; member 518 nfs4_stateid stateid; member [all …]
|
/openbmc/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() 491 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 | 81 static int decode_pnfs_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_pnfs_stateid() argument 88 stateid->type = NFS4_PNFS_DS_STATEID_TYPE; in decode_pnfs_stateid() 89 memcpy(stateid->data, p, NFS4_STATEID_SIZE); in decode_pnfs_stateid() 453 rc = decode_pnfs_stateid(&stream, &fls->mirror_array[i]->stateid); in ff_layout_alloc_lseg() 1804 nfs4_ff_layout_select_ds_stateid(mirror, &hdr->args.stateid); in ff_layout_read_pagelist() 1873 nfs4_ff_layout_select_ds_stateid(mirror, &hdr->args.stateid); in ff_layout_write_pagelist() 2105 const nfs4_stateid *stateid, in ff_layout_encode_ff_iostat_head() argument 2113 encode_opaque_fixed(xdr, stateid->data, NFS4_STATEID_SIZE); in ff_layout_encode_ff_iostat_head() 2124 const nfs4_stateid *stateid, in ff_layout_encode_ff_iostat() argument 2127 ff_layout_encode_ff_iostat_head(xdr, stateid, devinfo); in ff_layout_encode_ff_iostat() [all …]
|
/openbmc/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 6345 check_special_stateids(struct net *net, svc_fh *current_fh, stateid_t *stateid, int flags) in check_special_stateids() argument 6347 if (ONE_STATEID(stateid) && (flags & RD_STATE)) in check_special_stateids() 6409 static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid) in nfsd4_validate_stateid() argument 6414 if (ZERO_STATEID(stateid) || ONE_STATEID(stateid) || in nfsd4_validate_stateid() 6415 CLOSE_STATEID(stateid)) in nfsd4_validate_stateid() 6418 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 | 1176 stateid_t *stateid = &write->wr_stateid; in nfsd4_write() local 1190 stateid, WR_STATE, &nf, NULL); in nfsd4_write() 1316 nfs4_stateid *stateid); 1526 copy->stateid.seqid = cpu_to_be32(s_stid->si_generation); in nfsd4_setup_inter_ssc() 1527 memcpy(copy->stateid.other, (void *)&s_stid->si_opaque, in nfsd4_setup_inter_ssc() 1576 nfs4_stateid *stateid) in nfs42_ssc_open() argument 1700 memcpy(&dst->stateid, &src->stateid, sizeof(src->stateid)); in dup_copy_fields() 1761 ©->c_fh, ©->stateid); in nfsd4_do_async_copy() 1869 find_async_copy_locked(struct nfs4_client *clp, stateid_t *stateid) in find_async_copy_locked() argument 1876 if (memcmp(©->cp_stateid.cs_stid, stateid, NFS4_STATEID_SIZE)) in find_async_copy_locked() [all …]
|
H A D | xdr4.h | 175 stateid_t stateid; member 188 #define lk_resp_stateid u.ok.stateid 576 nfs4_stateid stateid; member 616 stateid_t stateid; member
|
H A D | pnfs.h | 55 struct nfsd4_compound_state *cstate, stateid_t *stateid,
|
H A D | state.h | 674 stateid_t *stateid, int flags, struct nfsd_file **filp, 677 stateid_t *stateid, unsigned char typemask,
|