/linux-4.1.27/fs/nfs/ |
D | delegation.h | 19 nfs4_stateid stateid; member 40 int nfs_async_inode_return_delegation(struct inode *inode, const nfs4_stateid *stateid); 56 int nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, const nfs4_stateid *stateid, … 57 …gation_recall(struct nfs_open_context *ctx, struct nfs4_state *state, const nfs4_stateid *stateid); 58 …ock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid *stateid);
|
D | delegation.c | 84 …on_claim_locks(struct nfs_open_context *ctx, struct nfs4_state *state, const nfs4_stateid *stateid) in nfs_delegation_claim_locks() argument 102 status = nfs4_lock_delegation_recall(fl, state, stateid); in nfs_delegation_claim_locks() 116 static int nfs_delegation_claim_opens(struct inode *inode, const nfs4_stateid *stateid) in nfs_delegation_claim_opens() argument 135 if (!nfs4_stateid_match(&state->stateid, stateid)) in nfs_delegation_claim_opens() 143 err = nfs4_open_delegation_recall(ctx, state, stateid); in nfs_delegation_claim_opens() 145 err = nfs_delegation_claim_locks(ctx, state, stateid); in nfs_delegation_claim_opens() 176 nfs4_stateid_copy(&delegation->stateid, &res->delegation); in nfs_inode_reclaim_delegation() 205 &delegation->stateid, in nfs_do_return_delegation() 311 if (nfs4_stateid_is_newer(&update->stateid, &delegation->stateid)) { in nfs_update_inplace_delegation() 312 delegation->stateid.seqid = update->stateid.seqid; in nfs_update_inplace_delegation() [all …]
|
D | callback.h | 81 nfs4_stateid stateid; member 123 const nfs4_stateid *stateid); 200 const nfs4_stateid *stateid);
|
D | pnfs.c | 55 pnfs_send_layoutreturn(struct pnfs_layout_hdr *lo, nfs4_stateid stateid, 372 nfs4_stateid stateid; in pnfs_layoutreturn_before_put_lseg() local 375 stateid = lo->plh_stateid; in pnfs_layoutreturn_before_put_lseg() 384 pnfs_send_layoutreturn(lo, stateid, iomode, false); in pnfs_layoutreturn_before_put_lseg() 795 const nfs4_stateid *stateid) in pnfs_layout_stateid_blocked() argument 797 u32 seqid = be32_to_cpu(stateid->seqid); in pnfs_layout_stateid_blocked() 842 nfs4_stateid_copy(dst, &open_state->stateid); in pnfs_choose_layoutget_stateid() 929 pnfs_send_layoutreturn(struct pnfs_layout_hdr *lo, nfs4_stateid stateid, in pnfs_send_layoutreturn() argument 948 lrp->args.stateid = stateid; in pnfs_send_layoutreturn() 978 nfs4_stateid stateid; in _pnfs_return_layout() local [all …]
|
D | nfs4proc.c | 1076 p->c_arg.stateid = &p->o_res.stateid; in nfs4_opendata_alloc() 1194 nfs4_stateid *stateid) in nfs_need_update_open_stateid() argument 1198 if (!nfs4_stateid_match_other(stateid, &state->open_stateid)) { in nfs_need_update_open_stateid() 1202 if (nfs4_stateid_is_newer(stateid, &state->open_stateid)) in nfs_need_update_open_stateid() 1222 nfs4_stateid *stateid, fmode_t fmode) in nfs_clear_open_stateid_locked() argument 1237 if (stateid == NULL) in nfs_clear_open_stateid_locked() 1241 (nfs4_stateid_match_other(stateid, &state->open_stateid) && in nfs_clear_open_stateid_locked() 1242 !nfs4_stateid_is_newer(stateid, &state->open_stateid))) { in nfs_clear_open_stateid_locked() 1247 nfs4_stateid_copy(&state->stateid, stateid); in nfs_clear_open_stateid_locked() 1248 nfs4_stateid_copy(&state->open_stateid, stateid); in nfs_clear_open_stateid_locked() [all …]
|
D | callback_proc.c | 87 switch (nfs_async_inode_return_delegation(inode, &args->stateid)) { in nfs4_callback_recall() 116 struct nfs_fh *fh, nfs4_stateid *stateid) in get_layout_by_fh_locked() argument 124 if (!nfs4_stateid_match_other(&lo->plh_stateid, stateid)) in get_layout_by_fh_locked() 148 struct nfs_fh *fh, nfs4_stateid *stateid) in get_layout_by_fh() argument 154 lo = get_layout_by_fh_locked(clp, fh, stateid); in get_layout_by_fh()
|
D | nfs4_fs.h | 173 nfs4_stateid stateid; /* Current stateid: may be delegation */ member 255 extern int nfs4_set_rw_stateid(nfs4_stateid *stateid, 425 const nfs4_stateid *stateid);
|
D | nfs4xdr.c | 990 static void encode_nfs4_stateid(struct xdr_stream *xdr, const nfs4_stateid *stateid) in encode_nfs4_stateid() argument 992 encode_opaque_fixed(xdr, stateid, NFS4_STATEID_SIZE); in encode_nfs4_stateid() 1131 encode_nfs4_stateid(xdr, &arg->stateid); in encode_close() 1336 encode_nfs4_stateid(xdr, &args->stateid); in encode_locku() 1461 …de_claim_delegate_cur(struct xdr_stream *xdr, const struct qstr *name, const nfs4_stateid *stateid) in encode_claim_delegate_cur() argument 1467 encode_nfs4_stateid(xdr, stateid); in encode_claim_delegate_cur() 1479 static inline void encode_claim_delegate_cur_fh(struct xdr_stream *xdr, const nfs4_stateid *stateid) in encode_claim_delegate_cur_fh() argument 1485 encode_nfs4_stateid(xdr, stateid); in encode_claim_delegate_cur_fh() 1517 encode_nfs4_stateid(xdr, arg->stateid); in encode_open_confirm() 1524 encode_nfs4_stateid(xdr, &arg->stateid); in encode_open_downgrade() [all …]
|
D | callback_xdr.c | 140 static __be32 decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_stateid() argument 147 memcpy(stateid, p, NFS4_STATEID_SIZE); in decode_stateid() 214 status = decode_stateid(xdr, &args->stateid); in decode_recall_args()
|
D | nfs4state.c | 1337 const nfs4_stateid *stateid) in nfs_inode_find_state_and_recover() argument 1352 if (!nfs4_stateid_match(&state->stateid, stateid)) in nfs_inode_find_state_and_recover()
|
/linux-4.1.27/include/linux/ |
D | nfs_xdr.h | 234 nfs4_stateid stateid; member 244 nfs4_stateid stateid; member 269 nfs4_stateid stateid; member 300 nfs4_stateid stateid; member 307 nfs4_stateid stateid; member 356 nfs4_stateid stateid; member 382 nfs4_stateid * stateid; member 388 nfs4_stateid stateid; member 398 nfs4_stateid stateid; member 407 nfs4_stateid stateid; member [all …]
|
/linux-4.1.27/fs/nfs/flexfilelayout/ |
D | flexfilelayoutdev.c | 197 nfs4_stateid *stateid, in ds_error_can_merge() argument 201 nfs4_stateid_match(&err->stateid, stateid) && in ds_error_can_merge() 211 new->opnum, &new->stateid, &new->deviceid)) in merge_ds_error() 237 nfs4_stateid *stateid, struct nfs4_deviceid *deviceid) in ff_layout_update_ds_error() argument 244 stateid, deviceid)) { in ff_layout_update_ds_error() 270 &mirror->stateid, in ff_layout_track_ds_error() 285 nfs4_stateid_copy(&dserr->stateid, &mirror->stateid); in ff_layout_track_ds_error() 512 p = xdr_encode_opaque_fixed(p, &err->stateid, in ff_layout_encode_ds_ioerr()
|
D | flexfilelayout.h | 40 nfs4_stateid stateid; member 50 nfs4_stateid stateid; member
|
D | flexfilelayout.c | 54 static int decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_stateid() argument 61 memcpy(stateid, p, NFS4_STATEID_SIZE); in decode_stateid() 305 rc = decode_stateid(&stream, &fls->mirror_array[i]->stateid); in ff_layout_alloc_lseg() 974 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in ff_layout_read_prepare_v4() 1133 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in ff_layout_write_prepare_v4()
|
/linux-4.1.27/fs/nfsd/ |
D | state.h | 367 update_stateid(stateid_t *stateid) in update_stateid() argument 369 stateid->si_generation++; in update_stateid() 371 if (stateid->si_generation == 0) in update_stateid() 372 stateid->si_generation = 1; in update_stateid() 588 stateid_t *stateid, int flags, struct file **filp); 590 stateid_t *stateid, unsigned char typemask,
|
D | nfs4state.c | 69 #define ZERO_STATEID(stateid) (!memcmp((stateid), &zero_stateid, sizeof(stateid_t))) argument 70 #define ONE_STATEID(stateid) (!memcmp((stateid), &one_stateid, sizeof(stateid_t))) argument 71 #define CURRENT_STATEID(stateid) (!memcmp((stateid), ¤tstateid, sizeof(stateid_t))) argument 4540 check_special_stateids(struct net *net, svc_fh *current_fh, stateid_t *stateid, int flags) in check_special_stateids() argument 4542 if (ONE_STATEID(stateid) && (flags & RD_STATE)) in check_special_stateids() 4608 static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid) in nfsd4_validate_stateid() argument 4613 if (ZERO_STATEID(stateid) || ONE_STATEID(stateid)) in nfsd4_validate_stateid() 4616 if (!same_clid(&stateid->si_opaque.so_clid, &cl->cl_clientid)) { in nfsd4_validate_stateid() 4625 s = find_stateid_locked(cl, stateid); in nfsd4_validate_stateid() 4628 status = check_stateid_generation(stateid, &s->sc_stateid, 1); in nfsd4_validate_stateid() [all …]
|
D | pnfs.h | 41 struct nfsd4_compound_state *cstate, stateid_t *stateid,
|
D | nfs4layouts.c | 235 struct nfsd4_compound_state *cstate, stateid_t *stateid, in nfsd4_preprocess_layout_stateid() argument 246 status = nfsd4_lookup_stateid(cstate, stateid, typemask, &stid, in nfsd4_preprocess_layout_stateid() 268 if (stateid->si_generation > stid->sc_stateid.si_generation) in nfsd4_preprocess_layout_stateid()
|
D | xdr4.h | 176 stateid_t stateid; member 189 #define lk_resp_stateid u.ok.stateid
|
D | nfs4xdr.c | 1477 struct nfsd4_test_stateid_id *stateid; in nfsd4_decode_test_stateid() local 1485 stateid = svcxdr_tmpalloc(argp, sizeof(*stateid)); in nfsd4_decode_test_stateid() 1486 if (!stateid) { in nfsd4_decode_test_stateid() 1491 INIT_LIST_HEAD(&stateid->ts_id_list); in nfsd4_decode_test_stateid() 1492 list_add_tail(&stateid->ts_id_list, &test_stateid->ts_stateid_list); in nfsd4_decode_test_stateid() 1494 status = nfsd4_decode_stateid(argp, &stateid->ts_id_stateid); in nfsd4_decode_test_stateid() 4000 struct nfsd4_test_stateid_id *stateid, *next; in nfsd4_encode_test_stateid() local 4011 list_for_each_entry_safe(stateid, next, &test_stateid->ts_stateid_list, ts_id_list) { in nfsd4_encode_test_stateid() 4012 *p++ = stateid->ts_id_status; in nfsd4_encode_test_stateid()
|
D | nfs4proc.c | 984 stateid_t *stateid = &write->wr_stateid; in nfsd4_write() local 996 cstate, stateid, WR_STATE, &filp); in nfsd4_write()
|
/linux-4.1.27/fs/nfs/filelayout/ |
D | filelayout.c | 308 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in filelayout_read_prepare() 401 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in filelayout_write_prepare()
|