Searched refs:stateid (Results 1 - 25 of 32) sorted by relevance

12

/linux-master/fs/nfs/
H A Ddelegation.h20 nfs4_stateid stateid; member in struct:nfs_delegation
44 fmode_t type, const nfs4_stateid *stateid, unsigned long pagemod_limit);
46 fmode_t type, const nfs4_stateid *stateid, unsigned long pagemod_limit);
49 int nfs_async_inode_return_delegation(struct inode *inode, const nfs4_stateid *stateid);
59 void nfs_remove_bad_delegation(struct inode *inode, const nfs4_stateid *stateid);
60 void nfs_delegation_mark_returned(struct inode *inode, const nfs4_stateid *stateid);
70 int nfs4_proc_delegreturn(struct inode *inode, const struct cred *cred, const nfs4_stateid *stateid, int issync);
71 int nfs4_open_delegation_recall(struct nfs_open_context *ctx, struct nfs4_state *state, const nfs4_stateid *stateid);
72 int nfs4_lock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid *stateid);
82 const nfs4_stateid *stateid);
[all...]
H A Ddelegation.c43 delegation->stateid.type = NFS4_INVALID_STATEID_TYPE;
145 static int nfs_delegation_claim_locks(struct nfs4_state *state, const nfs4_stateid *stateid) argument
163 status = nfs4_lock_delegation_recall(fl, state, stateid);
178 const nfs4_stateid *stateid, fmode_t type)
196 if (!nfs4_stateid_match(&state->stateid, stateid))
204 err = nfs4_open_delegation_recall(ctx, state, stateid);
206 err = nfs_delegation_claim_locks(state, stateid);
222 * @stateid: delegation stateid
177 nfs_delegation_claim_opens(struct inode *inode, const nfs4_stateid *stateid, fmode_t type) argument
226 nfs_inode_reclaim_delegation(struct inode *inode, const struct cred *cred, fmode_t type, const nfs4_stateid *stateid, unsigned long pagemod_limit) argument
424 nfs_inode_set_delegation(struct inode *inode, const struct cred *cred, fmode_t type, const nfs4_stateid *stateid, unsigned long pagemod_limit) argument
917 nfs_revoke_delegation(struct inode *inode, const nfs4_stateid *stateid) argument
952 nfs_remove_bad_delegation(struct inode *inode, const nfs4_stateid *stateid) argument
959 nfs_delegation_mark_returned(struct inode *inode, const nfs4_stateid *stateid) argument
1042 nfs_async_inode_return_delegation(struct inode *inode, const nfs4_stateid *stateid) argument
1272 nfs_delegation_test_free_expired(struct inode *inode, nfs4_stateid *stateid, const struct cred *cred) argument
1293 nfs4_stateid stateid; local
1348 nfs_inode_find_delegation_state_and_recover(struct inode *inode, const nfs4_stateid *stateid) argument
[all...]
H A Dnfs4proc.c381 nfs4_stateid *stateid,
386 ops->test_and_free_expired(server, stateid, cred);
390 nfs4_stateid *stateid,
393 stateid->type = NFS4_REVOKED_STATEID_TYPE;
394 nfs4_test_and_free_stateid(server, stateid, cred);
398 const nfs4_stateid *stateid,
403 nfs4_stateid_copy(&tmp, stateid);
451 nfs4_recoverable_stateid(const nfs4_stateid *stateid) argument
453 if (!stateid)
455 switch (stateid
380 nfs4_test_and_free_stateid(struct nfs_server *server, nfs4_stateid *stateid, const struct cred *cred) argument
389 __nfs4_free_revoked_stateid(struct nfs_server *server, nfs4_stateid *stateid, const struct cred *cred) argument
397 nfs4_free_revoked_stateid(struct nfs_server *server, const nfs4_stateid *stateid, const struct cred *cred) argument
474 const nfs4_stateid *stateid; local
1632 nfs_stateid_is_sequential(struct nfs4_state *state, const nfs4_stateid *stateid) argument
1663 nfs_clear_open_stateid_locked(struct nfs4_state *state, nfs4_stateid *stateid, fmode_t fmode) argument
1695 nfs_clear_open_stateid(struct nfs4_state *state, nfs4_stateid *arg_stateid, nfs4_stateid *stateid, fmode_t fmode) argument
1877 nfs4_update_lock_stateid(struct nfs4_lock_state *lsp, const nfs4_stateid *stateid) argument
1917 nfs4_stateid stateid; local
2275 nfs4_handle_delegation_recall_error(struct nfs_server *server, struct nfs4_state *state, const nfs4_stateid *stateid, struct file_lock *fl, int err) argument
2330 nfs4_open_delegation_recall(struct nfs_open_context *ctx, struct nfs4_state *state, const nfs4_stateid *stateid) argument
2806 nfs_finish_clear_delegation_stateid(struct nfs4_state *state, const nfs4_stateid *stateid) argument
2827 nfs40_test_and_free_expired_stateid(struct nfs_server *server, nfs4_stateid *stateid, const struct cred *cred) argument
2835 nfs41_test_and_free_expired_stateid(struct nfs_server *server, nfs4_stateid *stateid, const struct cred *cred) argument
2869 nfs4_stateid stateid; local
2984 nfs4_stateid *stateid = &state->open_stateid; local
5377 nfs4_set_rw_stateid(nfs4_stateid *stateid, const struct nfs_open_context *ctx, const struct nfs_lock_context *l_ctx, fmode_t fmode) argument
5386 nfs4_stateid_is_current(nfs4_stateid *stateid, const struct nfs_open_context *ctx, const struct nfs_lock_context *l_ctx, fmode_t fmode) argument
6547 nfs4_stateid stateid; member in struct:nfs4_delegreturndata
6673 _nfs4_proc_delegreturn(struct inode *inode, const struct cred *cred, const nfs4_stateid *stateid, int issync) argument
6748 nfs4_proc_delegreturn(struct inode *inode, const struct cred *cred, const nfs4_stateid *stateid, int issync) argument
7634 nfs4_lock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid *stateid) argument
10247 _nfs41_test_stateid(struct nfs_server *server, nfs4_stateid *stateid, const struct cred *cred) argument
10308 nfs41_test_stateid(struct nfs_server *server, nfs4_stateid *stateid, const struct cred *cred) argument
10376 nfs41_free_stateid(struct nfs_server *server, const nfs4_stateid *stateid, const struct cred *cred, bool privileged) argument
[all...]
H A Dnfs4trace.h560 be32_to_cpu(state->stateid.seqid);
562 nfs_stateid_hash(&state->stateid);
587 "name=%02x:%02x:%llu/%s stateid=%d:0x%08x "
639 be32_to_cpu(state->stateid.seqid);
641 nfs_stateid_hash(&state->stateid);
646 "fhandle=0x%08x stateid=%d:0x%08x",
685 be32_to_cpu(args->stateid.seqid);
687 nfs_stateid_hash(&args->stateid);
739 be32_to_cpu(state->stateid.seqid);
741 nfs_stateid_hash(&state->stateid);
[all...]
H A Dcallback_proc.c98 &args->stateid, -ntohl(res));
102 switch (nfs_async_inode_return_delegation(inode, &args->stateid)) {
113 &args->stateid, -ntohl(res));
123 * Lookup a layout inode by stateid
128 const nfs4_stateid *stateid)
140 if (!nfs4_stateid_match_other(stateid, &lo->plh_stateid))
196 const nfs4_stateid *stateid)
200 inode = nfs_layout_find_inode_by_stateid(clp, stateid);
215 /* Is the stateid not initialised? */
219 /* Mismatched stateid
194 nfs_layout_find_inode(struct nfs_client *clp, const struct nfs_fh *fh, const nfs4_stateid *stateid) argument
[all...]
H A Dpnfs.c339 * Compare 2 layout stateid sequence ids, to see which is newer,
408 * Update the seqid of a layout stateid after receiving
542 const nfs4_stateid *stateid)
551 lseg->pls_seq = be32_to_cpu(stateid->seqid);
1014 const nfs4_stateid *stateid)
1016 u32 seqid = be32_to_cpu(stateid->seqid);
1085 const nfs4_stateid *stateid,
1135 nfs4_stateid_copy(&lgp->args.stateid, stateid);
1169 const nfs4_stateid *stateid)
540 pnfs_init_lseg(struct pnfs_layout_hdr *lo, struct pnfs_layout_segment *lseg, const struct pnfs_layout_range *range, const nfs4_stateid *stateid) argument
1013 pnfs_layout_stateid_blocked(const struct pnfs_layout_hdr *lo, const nfs4_stateid *stateid) argument
1083 pnfs_alloc_init_layoutget_args(struct inode *ino, struct nfs_open_context *ctx, const nfs4_stateid *stateid, const struct pnfs_layout_range *range, gfp_t gfp_flags) argument
1166 pnfs_layoutreturn_free_lsegs(struct pnfs_layout_hdr *lo, const nfs4_stateid *arg_stateid, const struct pnfs_layout_range *range, const nfs4_stateid *stateid) argument
1194 pnfs_prepare_layoutreturn(struct pnfs_layout_hdr *lo, nfs4_stateid *stateid, const struct cred **cred, enum pnfs_iomode *iomode) argument
1221 pnfs_init_layoutreturn_args(struct nfs4_layoutreturn_args *args, struct pnfs_layout_hdr *lo, const nfs4_stateid *stateid, enum pnfs_iomode iomode) argument
1238 pnfs_send_layoutreturn(struct pnfs_layout_hdr *lo, const nfs4_stateid *stateid, const struct cred **pcred, enum pnfs_iomode iomode, bool sync) argument
1307 nfs4_stateid stateid; local
1341 nfs4_stateid stateid; local
1431 nfs4_stateid stateid; local
1982 nfs4_stateid stateid; local
2563 nfs4_stateid stateid; local
2656 nfs4_stateid stateid; local
[all...]
H A Dnfs42proc.c197 if (memcmp(&res->write_res.stateid, &iter->stateid,
211 memcpy(&copy->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE);
250 nfs42_do_offload_cancel_async(dst, &copy->stateid);
431 .stateid = &args.src_stateid,
435 .stateid = &args.dst_stateid,
540 nfs4_stateid *stateid)
568 memcpy(&data->args.osa_stateid, stateid,
646 exception.stateid
539 nfs42_do_offload_cancel_async(struct file *dst, nfs4_stateid *stateid) argument
[all...]
H A Dnfs4_fs.h144 * LOCK: one nfs4_state (LOCK) to hold the lock stateid nfs4_state(OPEN)
163 NFS_DELEGATED_STATE, /* Current stateid is delegation */
164 NFS_OPEN_STATE, /* OPEN stateid is set */
165 NFS_O_RDONLY_STATE, /* OPEN stateid has read-only state */
166 NFS_O_WRONLY_STATE, /* OPEN stateid has write-only state */
167 NFS_O_RDWR_STATE, /* OPEN stateid has read/write state */
168 NFS_STATE_RECLAIM_REBOOT, /* OPEN stateid server rebooted */
169 NFS_STATE_RECLAIM_NOGRACE, /* OPEN stateid needs to recover state */
171 NFS_STATE_RECOVERY_FAILED, /* OPEN stateid state recovery failed */
190 seqlock_t seqlock; /* Protects the stateid/open_statei
191 nfs4_stateid stateid; /* Current stateid: may be delegation */ member in struct:nfs4_state
209 nfs4_stateid *stateid; member in struct:nfs4_exception
638 nfs4_state_match_open_stateid_other(const struct nfs4_state *state, const nfs4_stateid *stateid) argument
[all...]
H A Dcallback_xdr.c124 static __be32 decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) argument
131 memcpy(stateid->data, p, NFS4_STATEID_SIZE);
135 static __be32 decode_delegation_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) argument
137 stateid->type = NFS4_DELEGATION_STATEID_TYPE;
138 return decode_stateid(xdr, stateid);
195 status = decode_delegation_stateid(xdr, &args->stateid);
206 static __be32 decode_layout_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) argument
208 stateid->type = NFS4_LAYOUT_STATEID_TYPE;
209 return decode_stateid(xdr, stateid);
561 /* decode stateid */
[all...]
H A Dnfs4file.c318 struct nfs_fh *src_fh, nfs4_stateid *stateid)
383 memcpy(&ctx->state->open_stateid.other, &stateid->other,
385 update_open_stateid(ctx->state, stateid, NULL, filep->f_mode);
317 __nfs42_ssc_open(struct vfsmount *ss_mnt, struct nfs_fh *src_fh, nfs4_stateid *stateid) argument
H A Dnfs4xdr.c1063 static void encode_nfs4_stateid(struct xdr_stream *xdr, const nfs4_stateid *stateid) argument
1065 encode_opaque_fixed(xdr, stateid, NFS4_STATEID_SIZE);
1210 encode_nfs4_stateid(xdr, &arg->stateid);
1378 encode_nfs4_stateid(xdr, &args->stateid);
1509 static inline void encode_claim_delegate_cur(struct xdr_stream *xdr, const struct qstr *name, const nfs4_stateid *stateid) argument
1515 encode_nfs4_stateid(xdr, stateid);
1527 static inline void encode_claim_delegate_cur_fh(struct xdr_stream *xdr, const nfs4_stateid *stateid) argument
1533 encode_nfs4_stateid(xdr, stateid);
1565 encode_nfs4_stateid(xdr, arg->stateid);
1572 encode_nfs4_stateid(xdr, &arg->stateid);
1779 encode_delegreturn(struct xdr_stream *xdr, const nfs4_stateid *stateid, struct compound_hdr *hdr) argument
4363 decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) argument
4368 decode_open_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) argument
4374 decode_lock_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) argument
4380 decode_delegation_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) argument
4386 decode_invalid_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) argument
5916 decode_layout_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) argument
[all...]
H A Dcallback.h63 nfs4_stateid stateid; member in struct:cb_recallargs
H A Dnfs4state.c842 * which stateid was intended to be used, so a "correct" choice cannot
1041 * Byte-range lock aware utility to initialize the stateid of read/write
1058 /* returns true if delegation stateid found and copied */
1065 * dst, so it still has the lock stateid which we now
1415 &state->stateid);
1416 dprintk("%s: scheduling stateid recovery for server %s\n", __func__,
1425 const nfs4_stateid *stateid)
1432 if (nfs4_stateid_match_or_older(&pos->ls_stateid, stateid))
1439 const nfs4_stateid *stateid)
1445 if (nfs_state_find_lock_state_by_stateid(state, stateid))
1424 nfs_state_find_lock_state_by_stateid(struct nfs4_state *state, const nfs4_stateid *stateid) argument
1438 nfs_state_lock_state_matches_stateid(struct nfs4_state *state, const nfs4_stateid *stateid) argument
1452 nfs_inode_find_state_and_recover(struct inode *inode, const nfs4_stateid *stateid) argument
[all...]
/linux-master/include/linux/
H A Dnfs_ssc.h20 struct nfs_fh *src_fh, nfs4_stateid *stateid);
44 struct nfs_fh *src_fh, nfs4_stateid *stateid)
47 return (*nfs_ssc_client_tbl.ssc_nfs4_ops->sco_open)(ss_mnt, src_fh, stateid);
43 nfs42_ssc_open(struct vfsmount *ss_mnt, struct nfs_fh *src_fh, nfs4_stateid *stateid) argument
H A Dnfs_xdr.h262 nfs4_stateid stateid; member in struct:nfs4_layoutget_args
272 nfs4_stateid stateid; member in struct:nfs4_layoutget_res
298 nfs4_stateid stateid; member in struct:nfs4_layoutcommit_args
330 nfs4_stateid stateid; member in struct:nfs4_layoutreturn_args
338 nfs4_stateid stateid; member in struct:nfs4_layoutreturn_res
376 nfs4_stateid stateid; member in struct:nfs42_layoutstat_args
402 nfs4_stateid stateid; member in struct:nfs42_layout_error
486 nfs4_stateid stateid; member in struct:nfs_openres
512 nfs4_stateid * stateid; member in struct:nfs_open_confirmargs
518 nfs4_stateid stateid; member in struct:nfs_open_confirmres
528 nfs4_stateid stateid; member in struct:nfs_closeargs
539 nfs4_stateid stateid; member in struct:nfs_closeres
572 nfs4_stateid stateid; member in struct:nfs_lock_res
582 nfs4_stateid stateid; member in struct:nfs_locku_args
587 nfs4_stateid stateid; member in struct:nfs_locku_res
615 const nfs4_stateid *stateid; member in struct:nfs4_delegreturnargs
649 nfs4_stateid stateid; member in struct:nfs_pgio_args
797 nfs4_stateid stateid; member in struct:nfs_setattrargs
1409 nfs4_stateid *stateid; member in struct:nfs41_test_stateid_args
1419 nfs4_stateid stateid; member in struct:nfs41_free_stateid_args
1470 nfs4_stateid stateid; member in struct:nfs42_write_res
[all...]
/linux-master/fs/nfsd/
H A Dflexfilelayoutxdr.h41 stateid_t stateid; member in struct:pnfs_ff_layout
H A Dflexfilelayoutxdr.c62 *p++ = cpu_to_be32(fl->stateid.si_generation);
63 p = xdr_encode_opaque_fixed(p, &fl->stateid.si_opaque,
H A Dpnfs.h56 struct nfsd4_compound_state *cstate, stateid_t *stateid,
H A Dnfs4state.c79 #define ZERO_STATEID(stateid) (!memcmp((stateid), &zero_stateid, sizeof(stateid_t)))
80 #define ONE_STATEID(stateid) (!memcmp((stateid), &one_stateid, sizeof(stateid_t)))
81 #define CURRENT_STATEID(stateid) (!memcmp((stateid), &currentstateid, sizeof(stateid_t)))
82 #define CLOSE_STATEID(stateid) (!memcmp((stateid), &close_stateid, sizeof(stateid_t)))
108 * the refcount on the open stateid to drop.
407 * st_{access,deny}_bmap field of the stateid, i
6670 check_special_stateids(struct net *net, svc_fh *current_fh, stateid_t *stateid, int flags) argument
6737 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid) argument
6776 nfsd4_lookup_stateid(struct nfsd4_compound_state *cstate, stateid_t *stateid, unsigned short typemask, unsigned short statusmask, struct nfs4_stid **s, struct nfsd_net *nn) argument
6989 nfs4_preprocess_stateid_op(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct svc_fh *fhp, stateid_t *stateid, int flags, struct nfsd_file **nfp, struct nfs4_stid **cstid) argument
7057 struct nfsd4_test_stateid_id *stateid; local
7068 nfsd4_free_lock_stateid(stateid_t *stateid, struct nfs4_stid *s) argument
7101 stateid_t *stateid = &free_stateid->fr_stateid; local
7157 nfs4_seqid_op_checks(struct nfsd4_compound_state *cstate, stateid_t *stateid, u32 seqid, struct nfs4_ol_stateid *stp) argument
7192 nfs4_preprocess_seqid_op(struct nfsd4_compound_state *cstate, u32 seqid, stateid_t *stateid, unsigned short typemask, unsigned short statusmask, struct nfs4_ol_stateid **stpp, struct nfsd_net *nn) argument
7220 nfs4_preprocess_confirmed_seqid_op(struct nfsd4_compound_state *cstate, u32 seqid, stateid_t *stateid, struct nfs4_ol_stateid **stpp, struct nfsd_net *nn) argument
7437 stateid_t *stateid = &dr->dr_stateid; local
8679 get_stateid(struct nfsd4_compound_state *cstate, stateid_t *stateid) argument
8687 put_stateid(struct nfsd4_compound_state *cstate, stateid_t *stateid) argument
[all...]
H A Dstate.h85 * A core object that represents a "common" stateid. These are generally
86 * embedded within the different (more specific) stateid objects and contain
87 * fields that are of general use to any stateid.
92 /* A new stateid is added to the cl_stateids idr early before it
109 * For an open stateid kept around *only* to process close replays.
110 * For deleg stateid, kept in idr until last reference is dropped.
113 /* For a deleg stateid kept around only to process free_stateid's: */
127 * parent OPEN/LOCK/DELEG stateid.
132 stateid_t cp_p_stateid; /* copy of parent's stateid */
134 time64_t cpntf_time; /* last time stateid use
[all...]
H A Dnfs4proc.c979 /* check stateid */
1191 stateid_t *stateid = &write->wr_stateid; local
1205 stateid, WR_STATE, &nf, NULL);
1327 nfs4_stateid *stateid);
1506 * Verify COPY destination stateid.
1523 /* Verify the destination stateid and set dst struct file*/
1538 copy->stateid.seqid = cpu_to_be32(s_stid->si_generation);
1539 memcpy(copy->stateid.other, (void *)&s_stid->si_opaque,
1588 nfs4_stateid *stateid)
1714 memcpy(&dst->stateid,
1586 nfs42_ssc_open(struct vfsmount *ss_mnt, struct nfs_fh *src_fh, nfs4_stateid *stateid) argument
1884 find_async_copy_locked(struct nfs4_client *clp, stateid_t *stateid) argument
1899 find_async_copy(struct nfs4_client *clp, stateid_t *stateid) argument
[all...]
H A Dnfs4layouts.c281 struct nfsd4_compound_state *cstate, stateid_t *stateid,
292 status = nfsd4_lookup_stateid(cstate, stateid, typemask, 0, &stid,
316 if (nfsd4_stateid_generation_after(stateid, &stid->sc_stateid))
280 nfsd4_preprocess_layout_stateid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, stateid_t *stateid, bool create, u32 layout_type, struct nfs4_layout_stateid **lsp) argument
/linux-master/fs/nfs/flexfilelayout/
H A Dflexfilelayout.h50 nfs4_stateid stateid; member in struct:nfs4_ff_layout_ds_err
83 nfs4_stateid stateid; member in struct:nfs4_ff_layout_mirror
209 nfs4_stateid *stateid);
H A Dflexfilelayoutdev.c209 ret = memcmp(e1->stateid.data, e2->stateid.data,
210 sizeof(e1->stateid.data));
274 nfs4_stateid_copy(&dserr->stateid, &mirror->stateid);
315 nfs4_stateid *stateid)
318 nfs4_stateid_copy(stateid, &mirror->stateid);
481 /* offset(8) + length(8) + stateid(NFS4_STATEID_SIZE)
491 p = xdr_encode_opaque_fixed(p, &err->stateid,
314 nfs4_ff_layout_select_ds_stateid(const struct nfs4_ff_layout_mirror *mirror, nfs4_stateid *stateid) argument
[all...]
H A Dflexfilelayout.c81 static int decode_pnfs_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) argument
88 stateid->type = NFS4_PNFS_DS_STATEID_TYPE;
89 memcpy(stateid->data, p, NFS4_STATEID_SIZE);
90 dprintk("%s: stateid id= [%x%x%x%x]\n", __func__,
452 /* stateid */
453 rc = decode_pnfs_stateid(&stream, &fls->mirror_array[i]->stateid);
1804 nfs4_ff_layout_select_ds_stateid(mirror, &hdr->args.stateid);
1873 nfs4_ff_layout_select_ds_stateid(mirror, &hdr->args.stateid);
2105 const nfs4_stateid *stateid,
2113 encode_opaque_fixed(xdr, stateid
2104 ff_layout_encode_ff_iostat_head(struct xdr_stream *xdr, const nfs4_stateid *stateid, const struct nfs42_layoutstat_devinfo *devinfo) argument
2123 ff_layout_encode_ff_iostat(struct xdr_stream *xdr, const nfs4_stateid *stateid, const struct nfs42_layoutstat_devinfo *devinfo) argument
[all...]

Completed in 335 milliseconds

12