| /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 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() 257 * @stateid: delegation stateid 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() [all …]
|
| H A D | nfs4trace.h | 587 be32_to_cpu(state->stateid.seqid); 589 nfs_stateid_hash(&state->stateid); 614 "name=%02x:%02x:%llu/%s stateid=%d:0x%08x " 666 be32_to_cpu(state->stateid.seqid); 668 nfs_stateid_hash(&state->stateid); 673 "fhandle=0x%08x stateid=%d:0x%08x", 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); [all …]
|
| H A D | nfs4proc.c | 425 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 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() 130 * Lookup a layout inode by stateid 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() 222 /* Is the stateid not initialised? */ in pnfs_check_callback_stateid() 226 /* Mismatched stateid? */ in pnfs_check_callback_stateid() [all …]
|
| H A D | pnfs.c | 338 * Compare 2 layout stateid sequence ids, to see which is newer, 407 * Update the seqid of a layout stateid after receiving 556 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() [all …]
|
| 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() 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() 559 /* decode stateid */ in decode_offload_args()
|
| H A D | nfs4state.c | 811 * which stateid was intended to be used, so a "correct" choice cannot 1004 * Byte-range lock aware utility to initialize the stateid of read/write 1021 /* returns true if delegation stateid found and copied */ in nfs4_select_rw_stateid() 1028 * dst, so it still has the lock stateid which we now in nfs4_select_rw_stateid() 1354 &state->stateid); in nfs4_schedule_stateid_recovery() 1355 dprintk("%s: scheduling stateid recovery for server %s\n", __func__, 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() [all …]
|
| H A D | nfs4xdr.c | 1067 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 D | nfs4file.c | 308 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 D | nfs42xdr.c | 405 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 D | pnfs.h | 107 NFS_LAYOUT_INVALID_STID, /* layout stateid id is invalid */ 339 const nfs4_stateid *stateid);
|
| /linux/fs/nfsd/ |
| H A D | state.h | 110 * A core object that represents a "common" stateid. These are generally 111 * embedded within the different (more specific) stateid objects and contain 112 * fields that are of general use to any stateid. 117 /* A new stateid is added to the cl_stateids idr early before it 135 * For an open stateid kept around *only* to process close replays. 136 * For deleg stateid, kept in idr until last reference is dropped. 139 /* For a deleg stateid kept around only to process free_stateid's: */ 156 * parent OPEN/LOCK/DELEG stateid. 161 stateid_t cp_p_stateid; /* copy of parent's stateid */ 163 time64_t cpntf_time; /* last time stateid used */ [all …]
|
| H A D | nfs4state.c | 83 #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), ¤tstateid, sizeof(stateid_t))) argument 86 #define CLOSE_STATEID(stateid) (!memcmp((stateid), &close_stateid, sizeof(stateid_t))) argument 107 * the refcount on the open stateid to drop. 447 * st_{access,deny}_bmap field of the stateid, in order to track not 482 /* set share access for a given stateid */ 492 /* clear share access for a given stateid */ 502 /* test whether a given stateid has access */ 511 /* set share deny for a given stateid */ [all …]
|
| H A D | flexfilelayoutxdr.c | 38 /* data server entry: deviceid + efficiency + stateid + fh list + in nfsd4_ff_encode_layoutget() 66 *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 D | nfs4layouts.c | 288 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() 878 * At this time, the file_lease associated with the layout stateid is 880 * stateid to prevent it from being freed while the fence worker is 902 * taking a reference count on the layout stateid. The in nfsd4_layout_lm_breaker_timedout()
|
| H A D | nfs4proc.c | 1054 /* check stateid */ in nfsd4_read() 1354 stateid_t *stateid = &write->wr_stateid; in nfsd4_write() local 1368 stateid, WR_STATE, &nf, &stid); in nfsd4_write() 1526 * Drop the copy offload stateid's sole reference: removes it from in nfs4_put_copy() 1658 nfs4_stateid *stateid); 1837 * Verify COPY destination stateid. 1854 /* Verify the destination stateid and set dst struct file*/ in nfsd4_setup_inter_ssc() 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 [all …]
|
| H A D | flexfilelayoutxdr.h | 41 stateid_t stateid; member
|
| H A D | flexfilelayout.c | 36 * Zero it out for the stateid - don't want junk in there! in nfsd4_ff_proc_layoutget()
|
| H A D | netns.h | 169 * clientid and stateid data for construction of net unique COPY
|
| H A D | nfs4xdr.c | 2066 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() 4999 /* stateid */ in nfsd4_encode_open_read_delegation4() 5027 /* stateid */ in nfsd4_encode_open_write_delegation4() 5103 /* stateid */ in nfsd4_encode_open() [all …]
|
| /linux/include/linux/ |
| H A D | nfs_xdr.h | 274 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 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()
|
| /linux/fs/nfs/flexfilelayout/ |
| H A D | flexfilelayoutdev.c | 214 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() 500 /* offset(8) + length(8) + stateid(NFS4_STATEID_SIZE) in ff_layout_encode_ds_ioerr() 510 p = xdr_encode_opaque_fixed(p, &err->stateid, in ff_layout_encode_ds_ioerr()
|
| 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() 91 dprintk("%s: stateid id= [%x%x%x%x]\n", __func__, in decode_pnfs_stateid() 543 /* stateid */ in ff_layout_alloc_lseg() 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() [all …]
|
| /linux/Documentation/sunrpc/xdr/ |
| H A D | nfs4_1.x | 109 NFS4ERR_BAD_STATEID = 10025,/* incorrect stateid */ 221 * Stateid
|