| /linux/fs/nfs/ |
| H A D | delegation.c | 60 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 D | nfs4proc.c | 411 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 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() 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 D | nfs42proc.c | 24 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(©->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE); in handle_async_copy() 309 nfs42_do_offload_cancel_async(dst, ©->stateid); in handle_async_copy() 317 status = nfs42_proc_offload_status(dst, ©->stateid, &copied); in handle_async_copy() 531 .stateid = &args.src_stateid, in nfs42_proc_copy() 535 .stateid = &args.dst_stateid, in nfs42_proc_copy() 640 nfs4_stateid *stateid) in nfs42_do_offload_cancel_async() argument 668 memcpy(&data->args.osa_stateid, stateid, in nfs42_do_offload_cancel_async() 746 nfs42_proc_offload_status(struct file *dst, nfs4_stateid *stateid, u64 *copied) in nfs42_proc_offload_status() argument [all …]
|
| H A D | callback_proc.c | 107 &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(©->stateid, &args->coa_stateid, NFS4_STATEID_SIZE); in nfs4_callback_offload()
|
| H A D | callback_xdr.c | 125 static __be32 decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_stateid() argument 132 memcpy(stateid->data, p, NFS4_STATEID_SIZE); in decode_stateid() 136 static __be32 decode_delegation_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_delegation_stateid() argument 138 stateid->type = NFS4_DELEGATION_STATEID_TYPE; in decode_delegation_stateid() 139 return decode_stateid(xdr, stateid); in decode_delegation_stateid() 196 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 | 1328 &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 D | nfs4file.c | 306 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 D | nfs42xdr.c | 403 encode_nfs4_stateid(xdr, &args->stateid); in encode_read_plus() 429 encode_nfs4_stateid(xdr, &args->stateid); in encode_layoutstats() 483 encode_nfs4_stateid(xdr, &args->stateid); in encode_layouterror() 893 status = decode_opaque_fixed(xdr, &res->stateid, in decode_write_response()
|
| H A D | nfs40proc.c | 154 nfs4_stateid *stateid, in nfs40_test_and_free_expired_stateid() argument
|
| H A D | pnfs.h | 338 const nfs4_stateid *stateid);
|
| /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_fs.h | 282 nfs4_stateid stateid; member
|
| /linux/fs/nfs/flexfilelayout/ |
| H A D | flexfilelayoutdev.c | 208 ret = memcmp(e1->stateid.data, e2->stateid.data, in ff_ds_error_match() 209 sizeof(e1->stateid.data)); in ff_ds_error_match() 273 nfs4_stateid_copy(&dserr->stateid, &mirror->dss[dss_id].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->dss[dss_id].stateid); in nfs4_ff_layout_select_ds_stateid() 503 p = xdr_encode_opaque_fixed(p, &err->stateid, in ff_layout_encode_ds_ioerr()
|
| H A D | flexfilelayout.h | 52 nfs4_stateid stateid; member 85 nfs4_stateid stateid; member 233 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() 544 rc = decode_pnfs_stateid(&stream, &dss_info->stateid); in ff_layout_alloc_lseg() 2175 nfs4_ff_layout_select_ds_stateid(mirror, dss_id, &hdr->args.stateid); in ff_layout_read_pagelist() 2261 nfs4_ff_layout_select_ds_stateid(mirror, dss_id, &hdr->args.stateid); in ff_layout_write_pagelist() 2504 const nfs4_stateid *stateid, in ff_layout_encode_ff_iostat_head() argument 2512 encode_opaque_fixed(xdr, stateid->data, NFS4_STATEID_SIZE); in ff_layout_encode_ff_iostat_head() 2523 const nfs4_stateid *stateid, in ff_layout_encode_ff_iostat() argument 2526 ff_layout_encode_ff_iostat_head(xdr, stateid, devinfo); in ff_layout_encode_ff_iostat() [all …]
|
| /linux/fs/nfsd/ |
| H A D | flexfilelayoutxdr.c | 61 *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 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 7121 check_special_stateids(struct net *net, svc_fh *current_fh, stateid_t *stateid, int flags) in check_special_stateids() argument 7123 if (ONE_STATEID(stateid) && (flags & RD_STATE)) in check_special_stateids() 7188 static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid) in nfsd4_validate_stateid() argument 7193 if (ZERO_STATEID(stateid) || ONE_STATEID(stateid) || in nfsd4_validate_stateid() 7194 CLOSE_STATEID(stateid)) in nfsd4_validate_stateid() 7197 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 | 1325 stateid_t *stateid = &write->wr_stateid; in nfsd4_write() local 1339 stateid, WR_STATE, &nf, &stid); in nfsd4_write() 1612 nfs4_stateid *stateid); 1823 copy->stateid.seqid = cpu_to_be32(s_stid->si_generation); in nfsd4_setup_inter_ssc() 1824 memcpy(copy->stateid.other, (void *)&s_stid->si_opaque, in nfsd4_setup_inter_ssc() 1873 nfs4_stateid *stateid) in nfs42_ssc_open() argument 2010 memcpy(&dst->stateid, &src->stateid, sizeof(src->stateid)); in dup_copy_fields() 2092 ©->c_fh, ©->stateid); in nfsd4_do_async_copy() 2224 find_async_copy_locked(struct nfs4_client *clp, stateid_t *stateid) in find_async_copy_locked() argument 2231 if (memcmp(©->cp_stateid.cs_stid, stateid, NFS4_STATEID_SIZE)) in find_async_copy_locked() [all …]
|
| H A D | pnfs.h | 57 struct nfsd4_compound_state *cstate, stateid_t *stateid,
|
| H A D | nfs4layouts.c | 280 struct nfsd4_compound_state *cstate, stateid_t *stateid, in nfsd4_preprocess_layout_stateid() argument 291 status = nfsd4_lookup_stateid(cstate, stateid, typemask, 0, &stid, in nfsd4_preprocess_layout_stateid() 315 if (nfsd4_stateid_generation_after(stateid, &stid->sc_stateid)) in nfsd4_preprocess_layout_stateid()
|
| H A D | state.h | 787 stateid_t *stateid, int flags, struct nfsd_file **filp, 790 stateid_t *stateid, unsigned short typemask,
|
| H A D | nfs4xdr.c | 2046 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() 5449 struct nfsd4_test_stateid_id *stateid, *next; in nfsd4_encode_test_stateid() local 5455 list_for_each_entry_safe(stateid, next, in nfsd4_encode_test_stateid() 5457 if (xdr_stream_encode_be32(xdr, stateid->ts_id_status) != XDR_UNIT) in nfsd4_encode_test_stateid()
|
| /linux/fs/nfs/filelayout/ |
| H A D | filelayout.c | 289 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in filelayout_read_prepare() 385 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in filelayout_write_prepare()
|