Home
last modified time | relevance | path

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

/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
191 status = nfs4_lock_delegation_recall(fl, state, stateid); in nfs_delegation_claim_locks()
206 const nfs4_stateid *stateid, fmode_t type) in nfs_delegation_claim_opens() argument
224 if (!nfs4_stateid_match(&state->stateid, stateid)) in nfs_delegation_claim_opens()
232 err = nfs4_open_delegation_recall(ctx, state, stateid); in nfs_delegation_claim_opens()
234 err = nfs_delegation_claim_locks(state, stateid); in nfs_delegation_claim_opens()
256 fmode_t type, const nfs4_stateid *stateid, in nfs_inode_reclaim_delegation() argument
266 nfs_inode_set_delegation(inode, cred, type, stateid, in nfs_inode_reclaim_delegation()
272 nfs4_stateid_copy(&delegation->stateid, stateid); in nfs_inode_reclaim_delegation()
[all …]
H A Dnfs4proc.c411 nfs4_stateid *stateid, in nfs4_test_and_free_stateid() argument
416 ops->test_and_free_expired(server, stateid, cred); in nfs4_test_and_free_stateid()
420 nfs4_stateid *stateid, in __nfs4_free_revoked_stateid() argument
423 stateid->type = NFS4_REVOKED_STATEID_TYPE; in __nfs4_free_revoked_stateid()
424 nfs4_test_and_free_stateid(server, stateid, cred); in __nfs4_free_revoked_stateid()
428 const nfs4_stateid *stateid, in nfs4_free_revoked_stateid() argument
433 nfs4_stateid_copy(&tmp, stateid); in nfs4_free_revoked_stateid()
485 nfs4_recoverable_stateid(const nfs4_stateid *stateid) in nfs4_recoverable_stateid() argument
487 if (!stateid) in nfs4_recoverable_stateid()
489 switch (stateid->type) { in nfs4_recoverable_stateid()
[all …]
H A Dpnfs.c555 const nfs4_stateid *stateid) in pnfs_init_lseg() argument
564 lseg->pls_seq = be32_to_cpu(stateid->seqid); in pnfs_init_lseg()
1096 const nfs4_stateid *stateid) in pnfs_layout_stateid_blocked() argument
1098 u32 seqid = be32_to_cpu(stateid->seqid); in pnfs_layout_stateid_blocked()
1167 const nfs4_stateid *stateid, in pnfs_alloc_init_layoutget_args() argument
1217 nfs4_stateid_copy(&lgp->args.stateid, stateid); in pnfs_alloc_init_layoutget_args()
1278 const nfs4_stateid *stateid) in pnfs_layoutreturn_free_lsegs() argument
1286 if (stateid && pnfs_layout_is_valid(lo)) { in pnfs_layoutreturn_free_lsegs()
1291 pnfs_set_layout_stateid(lo, stateid, NULL, true); in pnfs_layoutreturn_free_lsegs()
1304 nfs4_stateid *stateid, in pnfs_prepare_layoutreturn() argument
[all …]
H A Dnfs42proc.c24 static int nfs42_proc_offload_status(struct file *file, nfs4_stateid *stateid,
258 if (memcmp(&res->write_res.stateid, &iter->stateid, in handle_async_copy()
272 memcpy(&copy->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE); in handle_async_copy()
309 nfs42_do_offload_cancel_async(dst, &copy->stateid); in handle_async_copy()
317 status = nfs42_proc_offload_status(dst, &copy->stateid, &copied); in handle_async_copy()
532 .stateid = &args.src_stateid, in nfs42_proc_copy()
536 .stateid = &args.dst_stateid, in nfs42_proc_copy()
641 nfs4_stateid *stateid) in nfs42_do_offload_cancel_async() argument
669 memcpy(&data->args.osa_stateid, stateid, in nfs42_do_offload_cancel_async()
747 nfs42_proc_offload_status(struct file *dst, nfs4_stateid *stateid, u64 *copied) in nfs42_proc_offload_status() argument
[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()
731 tmp_copy->stateid.other, in nfs4_callback_offload()
743 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 Dnfs4state.c1328 &state->stateid); in nfs4_schedule_stateid_recovery()
1338 const nfs4_stateid *stateid) in nfs_state_find_lock_state_by_stateid() argument
1345 if (nfs4_stateid_match_or_older(&pos->ls_stateid, stateid)) in nfs_state_find_lock_state_by_stateid()
1352 const nfs4_stateid *stateid) in nfs_state_lock_state_matches_stateid() argument
1358 if (nfs_state_find_lock_state_by_stateid(state, stateid)) in nfs_state_lock_state_matches_stateid()
1366 const nfs4_stateid *stateid) in nfs_inode_find_state_and_recover() argument
1381 if (nfs4_stateid_match_or_older(&state->stateid, stateid) && in nfs_inode_find_state_and_recover()
1387 nfs4_stateid_match_or_older(&state->open_stateid, stateid) && in nfs_inode_find_state_and_recover()
1392 if (nfs_state_lock_state_matches_stateid(state, stateid) && in nfs_inode_find_state_and_recover()
1398 nfs_inode_find_delegation_state_and_recover(inode, stateid); in nfs_inode_find_state_and_recover()
[all …]
H A Dnfs4file.c306 struct nfs_fh *src_fh, nfs4_stateid *stateid) in __nfs42_ssc_open() argument
371 memcpy(&ctx->state->open_stateid.other, &stateid->other, in __nfs42_ssc_open()
373 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.h919 static inline u32 nfs_stateid_hash(const nfs4_stateid *stateid) in nfs_stateid_hash() argument
921 return ~crc32_le(0xFFFFFFFF, &stateid->other[0], in nfs_stateid_hash()
H A Dpnfs.h338 const nfs4_stateid *stateid);
/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.h266 nfs4_stateid stateid; member
276 nfs4_stateid stateid; member
302 nfs4_stateid stateid; member
334 nfs4_stateid stateid; member
342 nfs4_stateid stateid; member
380 nfs4_stateid stateid; member
406 nfs4_stateid stateid; member
462 nfs4_stateid stateid; member
506 nfs4_stateid stateid; member
529 nfs4_stateid * stateid; member
[all …]
H A Dnfs_fs.h283 nfs4_stateid stateid; member
/linux/fs/nfs/flexfilelayout/
H A Dflexfilelayoutdev.c213 ret = memcmp(e1->stateid.data, e2->stateid.data, in ff_ds_error_match()
214 sizeof(e1->stateid.data)); in ff_ds_error_match()
278 nfs4_stateid_copy(&dserr->stateid, &mirror->dss[dss_id].stateid); in ff_layout_track_ds_error()
320 nfs4_stateid *stateid) in nfs4_ff_layout_select_ds_stateid() argument
323 nfs4_stateid_copy(stateid, &mirror->dss[dss_id].stateid); in nfs4_ff_layout_select_ds_stateid()
508 p = xdr_encode_opaque_fixed(p, &err->stateid, in ff_layout_encode_ds_ioerr()
H A Dflexfilelayout.h52 nfs4_stateid stateid; member
85 nfs4_stateid stateid; member
233 nfs4_stateid *stateid);
/linux/fs/nfsd/
H A Dflexfilelayoutxdr.c61 *p++ = cpu_to_be32(fl->stateid.si_generation); in nfsd4_ff_encode_layoutget()
62 p = xdr_encode_opaque_fixed(p, &fl->stateid.si_opaque, in nfsd4_ff_encode_layoutget()
H A Dnfs4state.c81 #define ZERO_STATEID(stateid) (!memcmp((stateid), &zero_stateid, sizeof(stateid_t))) argument
82 #define ONE_STATEID(stateid) (!memcmp((stateid), &one_stateid, sizeof(stateid_t))) argument
83 #define CURRENT_STATEID(stateid) (!memcmp((stateid), &currentstateid, sizeof(stateid_t))) argument
84 #define CLOSE_STATEID(stateid) (!memcmp((stateid), &close_stateid, sizeof(stateid_t))) argument
7139 check_special_stateids(struct net *net, svc_fh *current_fh, stateid_t *stateid, int flags) in check_special_stateids() argument
7141 if (ONE_STATEID(stateid) && (flags & RD_STATE)) in check_special_stateids()
7206 static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid) in nfsd4_validate_stateid() argument
7211 if (ZERO_STATEID(stateid) || ONE_STATEID(stateid) || in nfsd4_validate_stateid()
7212 CLOSE_STATEID(stateid)) in nfsd4_validate_stateid()
7215 s = find_stateid_locked(cl, stateid); in nfsd4_validate_stateid()
[all …]
H A Dflexfilelayoutxdr.h41 stateid_t stateid; member
H A Dnfs4proc.c1325 stateid_t *stateid = &write->wr_stateid; in nfsd4_write() local
1339 stateid, WR_STATE, &nf, &stid); in nfsd4_write()
1615 nfs4_stateid *stateid);
1826 copy->stateid.seqid = cpu_to_be32(s_stid->si_generation); in nfsd4_setup_inter_ssc()
1827 memcpy(copy->stateid.other, (void *)&s_stid->si_opaque, in nfsd4_setup_inter_ssc()
1876 nfs4_stateid *stateid) in nfs42_ssc_open() argument
2013 memcpy(&dst->stateid, &src->stateid, sizeof(src->stateid)); in dup_copy_fields()
2095 &copy->c_fh, &copy->stateid); in nfsd4_do_async_copy()
2236 find_async_copy_locked(struct nfs4_client *clp, stateid_t *stateid) in find_async_copy_locked() argument
2243 if (memcmp(&copy->cp_stateid.cs_stid, stateid, NFS4_STATEID_SIZE)) in find_async_copy_locked()
[all …]
H A Dstate.h805 stateid_t *stateid, int flags, struct nfsd_file **filp,
808 stateid_t *stateid, unsigned short typemask,
H A Dxdr4.h766 nfs4_stateid stateid; member
806 stateid_t stateid; member
H A Dnfs4xdr.c2046 struct nfsd4_test_stateid_id *stateid; in nfsd4_decode_test_stateid() local
2056 stateid = svcxdr_tmpalloc(argp, sizeof(*stateid)); in nfsd4_decode_test_stateid()
2057 if (!stateid) in nfsd4_decode_test_stateid()
2059 INIT_LIST_HEAD(&stateid->ts_id_list); in nfsd4_decode_test_stateid()
2060 list_add_tail(&stateid->ts_id_list, &test_stateid->ts_stateid_list); in nfsd4_decode_test_stateid()
2061 status = nfsd4_decode_stateid4(argp, &stateid->ts_id_stateid); in nfsd4_decode_test_stateid()
2230 return nfsd4_decode_stateid4(argp, &os->stateid); in nfsd4_decode_offload_status()
5450 struct nfsd4_test_stateid_id *stateid, *next; in nfsd4_encode_test_stateid() local
5456 list_for_each_entry_safe(stateid, next, in nfsd4_encode_test_stateid()
5458 if (xdr_stream_encode_be32(xdr, stateid->ts_id_status) != XDR_UNIT) in nfsd4_encode_test_stateid()