Home
last modified time | relevance | path

Searched refs:stateid (Results 1 – 25 of 26) sorted by relevance

12

/linux/fs/nfs/
H A Ddelegation.c60 delegation->stateid.type = NFS4_INVALID_STATEID_TYPE; in nfs_mark_delegation_revoked()
173 static int nfs_delegation_claim_locks(struct nfs4_state *state, const nfs4_stateid *stateid) in nfs_delegation_claim_locks() argument
195 status = nfs4_lock_delegation_recall(fl, state, stateid); in nfs_delegation_claim_locks()
213 const nfs4_stateid *stateid, fmode_t type) in nfs_delegation_claim_opens() argument
231 if (!nfs4_stateid_match(&state->stateid, stateid)) in nfs_delegation_claim_opens()
239 err = nfs4_open_delegation_recall(ctx, state, stateid); in nfs_delegation_claim_opens()
241 err = nfs_delegation_claim_locks(state, stateid); in nfs_delegation_claim_opens()
263 fmode_t type, const nfs4_stateid *stateid, in nfs_inode_reclaim_delegation() argument
273 nfs_inode_set_delegation(inode, cred, type, stateid, in nfs_inode_reclaim_delegation()
279 nfs4_stateid_copy(&delegation->stateid, stateid); in nfs_inode_reclaim_delegation()
[all …]
H A Dnfs4proc.c425 nfs4_stateid *stateid, in nfs4_test_and_free_stateid() argument
430 ops->test_and_free_expired(server, stateid, cred); in nfs4_test_and_free_stateid()
434 nfs4_stateid *stateid, in __nfs4_free_revoked_stateid() argument
437 stateid->type = NFS4_REVOKED_STATEID_TYPE; in __nfs4_free_revoked_stateid()
438 nfs4_test_and_free_stateid(server, stateid, cred); in __nfs4_free_revoked_stateid()
442 const nfs4_stateid *stateid, in nfs4_free_revoked_stateid() argument
447 nfs4_stateid_copy(&tmp, stateid); in nfs4_free_revoked_stateid()
499 nfs4_recoverable_stateid(const nfs4_stateid *stateid) in nfs4_recoverable_stateid() argument
501 if (!stateid) in nfs4_recoverable_stateid()
503 switch (stateid->type) { in nfs4_recoverable_stateid()
[all …]
H A Dpnfs.c556 const nfs4_stateid *stateid) in pnfs_init_lseg() argument
565 lseg->pls_seq = be32_to_cpu(stateid->seqid); in pnfs_init_lseg()
1097 const nfs4_stateid *stateid) in pnfs_layout_stateid_blocked() argument
1099 u32 seqid = be32_to_cpu(stateid->seqid); in pnfs_layout_stateid_blocked()
1168 const nfs4_stateid *stateid, in pnfs_alloc_init_layoutget_args() argument
1218 nfs4_stateid_copy(&lgp->args.stateid, stateid); in pnfs_alloc_init_layoutget_args()
1279 const nfs4_stateid *stateid) in pnfs_layoutreturn_free_lsegs() argument
1287 if (stateid && pnfs_layout_is_valid(lo)) { in pnfs_layoutreturn_free_lsegs()
1292 pnfs_set_layout_stateid(lo, stateid, NULL, true); in pnfs_layoutreturn_free_lsegs()
1305 nfs4_stateid *stateid, in pnfs_prepare_layoutreturn() argument
[all …]
H A Dnfs4trace.h587 be32_to_cpu(state->stateid.seqid);
589 nfs_stateid_hash(&state->stateid);
666 be32_to_cpu(state->stateid.seqid);
668 nfs_stateid_hash(&state->stateid);
712 be32_to_cpu(args->stateid.seqid);
714 nfs_stateid_hash(&args->stateid);
766 be32_to_cpu(state->stateid.seqid);
768 nfs_stateid_hash(&state->stateid);
838 be32_to_cpu(state->stateid.seqid);
840 nfs_stateid_hash(&state->stateid);
[all …]
H A Dcallback_proc.c107 &args->stateid, -ntohl(res)); in nfs4_callback_recall()
111 switch (nfs_async_inode_return_delegation(inode, &args->stateid)) { in nfs4_callback_recall()
122 &args->stateid, -ntohl(res)); in nfs4_callback_recall()
135 const nfs4_stateid *stateid) in nfs_layout_find_inode_by_stateid() argument
147 if (!nfs4_stateid_match_other(stateid, &lo->plh_stateid)) in nfs_layout_find_inode_by_stateid()
203 const nfs4_stateid *stateid) in nfs_layout_find_inode() argument
207 inode = nfs_layout_find_inode_by_stateid(clp, stateid); in nfs_layout_find_inode()
733 tmp_copy->stateid.other, in nfs4_callback_offload()
745 memcpy(&copy->stateid, &args->coa_stateid, NFS4_STATEID_SIZE); in nfs4_callback_offload()
H A Dcallback_xdr.c124 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()
205 static __be32 decode_layout_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_layout_stateid() argument
207 stateid->type = NFS4_LAYOUT_STATEID_TYPE; in decode_layout_stateid()
208 return decode_stateid(xdr, stateid); in decode_layout_stateid()
H A Dnfs4xdr.c1067 const nfs4_stateid *stateid) in encode_nfs4_stateid() argument
1069 encode_opaque_fixed(xdr, stateid->data, NFS4_STATEID_SIZE); in encode_nfs4_stateid()
1214 encode_nfs4_stateid(xdr, &arg->stateid); in encode_close()
1382 encode_nfs4_stateid(xdr, &args->stateid); in encode_locku()
1513 …de_claim_delegate_cur(struct xdr_stream *xdr, const struct qstr *name, const nfs4_stateid *stateid) in encode_claim_delegate_cur() argument
1519 encode_nfs4_stateid(xdr, stateid); in encode_claim_delegate_cur()
1531 static inline void encode_claim_delegate_cur_fh(struct xdr_stream *xdr, const nfs4_stateid *stateid) in encode_claim_delegate_cur_fh() argument
1537 encode_nfs4_stateid(xdr, stateid); in encode_claim_delegate_cur_fh()
1569 encode_nfs4_stateid(xdr, arg->stateid); in encode_open_confirm()
1576 encode_nfs4_stateid(xdr, &arg->stateid); in encode_open_downgrade()
[all …]
H A Dnfs4state.c1354 &state->stateid); in nfs4_schedule_stateid_recovery()
1364 const nfs4_stateid *stateid) in nfs_state_find_lock_state_by_stateid() argument
1371 if (nfs4_stateid_match_or_older(&pos->ls_stateid, stateid)) in nfs_state_find_lock_state_by_stateid()
1378 const nfs4_stateid *stateid) in nfs_state_lock_state_matches_stateid() argument
1384 if (nfs_state_find_lock_state_by_stateid(state, stateid)) in nfs_state_lock_state_matches_stateid()
1392 const nfs4_stateid *stateid) in nfs_inode_find_state_and_recover() argument
1407 if (nfs4_stateid_match_or_older(&state->stateid, stateid) && in nfs_inode_find_state_and_recover()
1413 nfs4_stateid_match_or_older(&state->open_stateid, stateid) && in nfs_inode_find_state_and_recover()
1418 if (nfs_state_lock_state_matches_stateid(state, stateid) && in nfs_inode_find_state_and_recover()
1424 nfs_inode_find_delegation_state_and_recover(inode, stateid); in nfs_inode_find_state_and_recover()
[all …]
H A Dnfs4file.c308 struct nfs_fh *src_fh, nfs4_stateid *stateid) in __nfs42_ssc_open() argument
373 memcpy(&ctx->state->open_stateid.other, &stateid->other, in __nfs42_ssc_open()
375 update_open_stateid(ctx->state, stateid, NULL, filep->f_mode); in __nfs42_ssc_open()
H A Dnfs42xdr.c405 encode_nfs4_stateid(xdr, &args->stateid); in encode_read_plus()
431 encode_nfs4_stateid(xdr, &args->stateid); in encode_layoutstats()
485 encode_nfs4_stateid(xdr, &args->stateid); in encode_layouterror()
896 status = decode_opaque_fixed(xdr, &res->stateid, in decode_write_response()
H A Dnfs40proc.c154 nfs4_stateid *stateid, in nfs40_test_and_free_expired_stateid() argument
H A Dinternal.h927 static inline u32 nfs_stateid_hash(const nfs4_stateid *stateid) in nfs_stateid_hash() argument
929 return ~crc32_le(0xFFFFFFFF, &stateid->other[0], in nfs_stateid_hash()
/linux/include/linux/
H A Dnfs_ssc.h20 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 Dnfs_xdr.h274 nfs4_stateid stateid; member
284 nfs4_stateid stateid; member
310 nfs4_stateid stateid; member
342 nfs4_stateid stateid; member
350 nfs4_stateid stateid; member
388 nfs4_stateid stateid; member
414 nfs4_stateid stateid; member
470 nfs4_stateid stateid; member
514 nfs4_stateid stateid; member
537 nfs4_stateid * stateid; member
[all …]
H A Dnfs_fs.h281 nfs4_stateid stateid; member
/linux/fs/nfs/flexfilelayout/
H A Dflexfilelayoutdev.c214 ret = memcmp(e1->stateid.data, e2->stateid.data, in ff_ds_error_match()
215 sizeof(e1->stateid.data)); in ff_ds_error_match()
279 nfs4_stateid_copy(&dserr->stateid, &mirror->dss[dss_id].stateid); in ff_layout_track_ds_error()
321 nfs4_stateid *stateid) in nfs4_ff_layout_select_ds_stateid() argument
324 nfs4_stateid_copy(stateid, &mirror->dss[dss_id].stateid); in nfs4_ff_layout_select_ds_stateid()
510 p = xdr_encode_opaque_fixed(p, &err->stateid, in ff_layout_encode_ds_ioerr()
H A Dflexfilelayout.c82 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()
544 rc = decode_pnfs_stateid(&stream, &dss_info->stateid); in ff_layout_alloc_lseg()
2214 nfs4_ff_layout_select_ds_stateid(mirror, dss_id, &hdr->args.stateid); in ff_layout_read_pagelist()
2308 nfs4_ff_layout_select_ds_stateid(mirror, dss_id, &hdr->args.stateid); in ff_layout_write_pagelist()
2559 const nfs4_stateid *stateid, in ff_layout_encode_ff_iostat_head() argument
2567 encode_opaque_fixed(xdr, stateid->data, NFS4_STATEID_SIZE); in ff_layout_encode_ff_iostat_head()
2578 const nfs4_stateid *stateid, in ff_layout_encode_ff_iostat() argument
2581 ff_layout_encode_ff_iostat_head(xdr, stateid, devinfo); in ff_layout_encode_ff_iostat()
[all …]
/linux/fs/nfsd/
H A Dflexfilelayoutxdr.c66 *p++ = cpu_to_be32(fl->stateid.si_generation); in nfsd4_ff_encode_layoutget()
67 p = xdr_encode_opaque_fixed(p, &fl->stateid.si_opaque, in nfsd4_ff_encode_layoutget()
H A Dnfs4state.c83 #define ZERO_STATEID(stateid) (!memcmp((stateid), &zero_stateid, sizeof(stateid_t))) argument
84 #define ONE_STATEID(stateid) (!memcmp((stateid), &one_stateid, sizeof(stateid_t))) argument
85 #define CURRENT_STATEID(stateid) (!memcmp((stateid), &currentstateid, sizeof(stateid_t))) argument
86 #define CLOSE_STATEID(stateid) (!memcmp((stateid), &close_stateid, sizeof(stateid_t))) argument
7839 check_special_stateids(struct net *net, svc_fh *current_fh, stateid_t *stateid, int flags) in check_special_stateids() argument
7841 if (ONE_STATEID(stateid) && (flags & RD_STATE)) in check_special_stateids()
7906 static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid) in nfsd4_validate_stateid() argument
7911 if (ZERO_STATEID(stateid) || ONE_STATEID(stateid) || in nfsd4_validate_stateid()
7912 CLOSE_STATEID(stateid)) in nfsd4_validate_stateid()
7915 s = find_stateid_locked(cl, stateid); in nfsd4_validate_stateid()
[all …]
H A Dflexfilelayoutxdr.h41 stateid_t stateid; member
H A Dnfs4proc.c1354 stateid_t *stateid = &write->wr_stateid; in nfsd4_write() local
1368 stateid, WR_STATE, &nf, &stid); in nfsd4_write()
1658 nfs4_stateid *stateid);
1869 copy->stateid.seqid = cpu_to_be32(s_stid->si_generation); in nfsd4_setup_inter_ssc()
1870 memcpy(copy->stateid.other, (void *)&s_stid->si_opaque, in nfsd4_setup_inter_ssc()
1919 nfs4_stateid *stateid) in nfs42_ssc_open() argument
2060 memcpy(&dst->stateid, &src->stateid, sizeof(src->stateid)); in dup_copy_fields()
2146 &copy->c_fh, &copy->stateid); in nfsd4_do_async_copy()
2310 find_async_copy_locked(struct nfs4_client *clp, stateid_t *stateid) in find_async_copy_locked() argument
2317 if (memcmp(&copy->cp_stid.sc_stateid, stateid, NFS4_STATEID_SIZE)) in find_async_copy_locked()
[all …]
H A Dnfs4layouts.c288 struct nfsd4_compound_state *cstate, stateid_t *stateid, in nfsd4_preprocess_layout_stateid() argument
299 status = nfsd4_lookup_stateid(cstate, stateid, typemask, 0, &stid, in nfsd4_preprocess_layout_stateid()
323 if (nfsd4_stateid_generation_after(stateid, &stid->sc_stateid)) in nfsd4_preprocess_layout_stateid()
H A Dstate.h882 stateid_t *stateid, int flags, struct nfsd_file **filp,
885 stateid_t *stateid, unsigned short typemask,
H A Dxdr4.h770 nfs4_stateid stateid; member
830 stateid_t stateid; member
H A Dnfs4xdr.c2066 struct nfsd4_test_stateid_id *stateid; in nfsd4_decode_test_stateid() local
2076 stateid = svcxdr_tmpalloc(argp, sizeof(*stateid)); in nfsd4_decode_test_stateid()
2077 if (!stateid) in nfsd4_decode_test_stateid()
2079 INIT_LIST_HEAD(&stateid->ts_id_list); in nfsd4_decode_test_stateid()
2080 list_add_tail(&stateid->ts_id_list, &test_stateid->ts_stateid_list); in nfsd4_decode_test_stateid()
2081 status = nfsd4_decode_stateid4(argp, &stateid->ts_id_stateid); in nfsd4_decode_test_stateid()
2263 return nfsd4_decode_stateid4(argp, &os->stateid); in nfsd4_decode_offload_status()
5855 struct nfsd4_test_stateid_id *stateid, *next; in nfsd4_encode_test_stateid() local
5861 list_for_each_entry_safe(stateid, next, in nfsd4_encode_test_stateid()
5863 if (xdr_stream_encode_be32(xdr, stateid->ts_id_status) != XDR_UNIT) in nfsd4_encode_test_stateid()

12