/linux-4.4.14/fs/nfs/ |
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() 117 const nfs4_stateid *stateid, fmode_t type) in nfs_delegation_claim_opens() argument 136 if (!nfs4_stateid_match(&state->stateid, stateid)) in nfs_delegation_claim_opens() 144 err = nfs4_open_delegation_recall(ctx, state, stateid, type); in nfs_delegation_claim_opens() 146 err = nfs_delegation_claim_locks(ctx, state, stateid); in nfs_delegation_claim_opens() 177 nfs4_stateid_copy(&delegation->stateid, &res->delegation); in nfs_inode_reclaim_delegation() 206 &delegation->stateid, in nfs_do_return_delegation() 312 if (nfs4_stateid_is_newer(&update->stateid, &delegation->stateid)) { in nfs_update_inplace_delegation() 313 delegation->stateid.seqid = update->stateid.seqid; in nfs_update_inplace_delegation() [all …]
|
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 …struct nfs_open_context *ctx, struct nfs4_state *state, const nfs4_stateid *stateid, fmode_t type); 58 …ock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid *stateid);
|
D | nfs4proc.c | 1150 p->c_arg.stateid = &p->o_res.stateid; in nfs4_opendata_alloc() 1295 nfs4_stateid *stateid) in nfs_need_update_open_stateid() argument 1299 if (!nfs4_stateid_match_other(stateid, &state->open_stateid)) { in nfs_need_update_open_stateid() 1303 if (nfs4_stateid_is_newer(stateid, &state->open_stateid)) in nfs_need_update_open_stateid() 1323 nfs4_stateid *stateid, fmode_t fmode) in nfs_clear_open_stateid_locked() argument 1338 if (stateid == NULL) in nfs_clear_open_stateid_locked() 1342 (nfs4_stateid_match_other(stateid, &state->open_stateid) && in nfs_clear_open_stateid_locked() 1343 !nfs4_stateid_is_newer(stateid, &state->open_stateid))) { in nfs_clear_open_stateid_locked() 1348 nfs4_stateid_copy(&state->stateid, stateid); in nfs_clear_open_stateid_locked() 1349 nfs4_stateid_copy(&state->open_stateid, stateid); in nfs_clear_open_stateid_locked() [all …]
|
D | pnfs.c | 56 pnfs_send_layoutreturn(struct pnfs_layout_hdr *lo, nfs4_stateid stateid, 384 nfs4_stateid stateid; in pnfs_layoutreturn_before_put_lseg() local 388 stateid = lo->plh_stateid; in pnfs_layoutreturn_before_put_lseg() 394 pnfs_send_layoutreturn(lo, stateid, iomode, false); in pnfs_layoutreturn_before_put_lseg() 812 const nfs4_stateid *stateid) in pnfs_layout_stateid_blocked() argument 814 u32 seqid = be32_to_cpu(stateid->seqid); in pnfs_layout_stateid_blocked() 846 nfs4_stateid_copy(dst, &open_state->stateid); in pnfs_choose_layoutget_stateid() 948 pnfs_send_layoutreturn(struct pnfs_layout_hdr *lo, nfs4_stateid stateid, in pnfs_send_layoutreturn() argument 965 lrp->args.stateid = stateid; in pnfs_send_layoutreturn() 995 nfs4_stateid stateid; in _pnfs_return_layout() local [all …]
|
D | callback_proc.c | 89 switch (nfs_async_inode_return_delegation(inode, &args->stateid)) { in nfs4_callback_recall() 118 struct nfs_fh *fh, nfs4_stateid *stateid) in get_layout_by_fh_locked() argument 126 if (!nfs4_stateid_match_other(&lo->plh_stateid, stateid)) in get_layout_by_fh_locked() 150 struct nfs_fh *fh, nfs4_stateid *stateid) in get_layout_by_fh() argument 156 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 258 extern int nfs4_set_rw_stateid(nfs4_stateid *stateid, 426 const nfs4_stateid *stateid);
|
D | nfs4xdr.c | 993 static void encode_nfs4_stateid(struct xdr_stream *xdr, const nfs4_stateid *stateid) in encode_nfs4_stateid() argument 995 encode_opaque_fixed(xdr, stateid, NFS4_STATEID_SIZE); in encode_nfs4_stateid() 1146 encode_nfs4_stateid(xdr, &arg->stateid); in encode_close() 1353 encode_nfs4_stateid(xdr, &args->stateid); in encode_locku() 1476 …de_claim_delegate_cur(struct xdr_stream *xdr, const struct qstr *name, const nfs4_stateid *stateid) in encode_claim_delegate_cur() argument 1482 encode_nfs4_stateid(xdr, stateid); in encode_claim_delegate_cur() 1494 static inline void encode_claim_delegate_cur_fh(struct xdr_stream *xdr, const nfs4_stateid *stateid) in encode_claim_delegate_cur_fh() argument 1500 encode_nfs4_stateid(xdr, stateid); in encode_claim_delegate_cur_fh() 1532 encode_nfs4_stateid(xdr, arg->stateid); in encode_open_confirm() 1539 encode_nfs4_stateid(xdr, &arg->stateid); in encode_open_downgrade() [all …]
|
D | callback.h | 79 nfs4_stateid stateid; member
|
D | callback_xdr.c | 142 static __be32 decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_stateid() argument 149 memcpy(stateid, p, NFS4_STATEID_SIZE); in decode_stateid() 214 status = decode_stateid(xdr, &args->stateid); in decode_recall_args()
|
D | nfs42xdr.c | 134 encode_nfs4_stateid(xdr, &args->stateid); in encode_layoutstats()
|
D | nfs4state.c | 1336 const nfs4_stateid *stateid) in nfs_inode_find_state_and_recover() argument 1351 if (!nfs4_stateid_match(&state->stateid, stateid)) in nfs_inode_find_state_and_recover()
|
/linux-4.4.14/include/linux/ |
D | nfs_xdr.h | 235 nfs4_stateid stateid; member 245 nfs4_stateid stateid; member 271 nfs4_stateid stateid; member 302 nfs4_stateid stateid; member 309 nfs4_stateid stateid; member 347 nfs4_stateid stateid; member 420 nfs4_stateid stateid; member 446 nfs4_stateid * stateid; member 452 nfs4_stateid stateid; member 462 nfs4_stateid stateid; member [all …]
|
/linux-4.4.14/fs/nfs/flexfilelayout/ |
D | flexfilelayoutdev.c | 223 nfs4_stateid *stateid, in ds_error_can_merge() argument 227 nfs4_stateid_match(&err->stateid, stateid) && in ds_error_can_merge() 237 new->opnum, &new->stateid, &new->deviceid)) in merge_ds_error() 263 nfs4_stateid *stateid, struct nfs4_deviceid *deviceid) in ff_layout_update_ds_error() argument 270 stateid, deviceid)) { in ff_layout_update_ds_error() 296 &mirror->stateid, in ff_layout_track_ds_error() 311 nfs4_stateid_copy(&dserr->stateid, &mirror->stateid); in ff_layout_track_ds_error() 527 p = xdr_encode_opaque_fixed(p, &err->stateid, in ff_layout_encode_ds_ioerr()
|
D | flexfilelayout.h | 46 nfs4_stateid stateid; member 78 nfs4_stateid stateid; member
|
D | flexfilelayout.c | 56 static int decode_stateid(struct xdr_stream *xdr, nfs4_stateid *stateid) in decode_stateid() argument 63 memcpy(stateid, p, NFS4_STATEID_SIZE); in decode_stateid() 459 rc = decode_stateid(&stream, &fls->mirror_array[i]->stateid); in ff_layout_alloc_lseg() 1315 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in ff_layout_read_prepare_v4() 1474 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in ff_layout_write_prepare_v4()
|
/linux-4.4.14/fs/nfsd/ |
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 4594 check_special_stateids(struct net *net, svc_fh *current_fh, stateid_t *stateid, int flags) in check_special_stateids() argument 4596 if (ONE_STATEID(stateid) && (flags & RD_STATE)) in check_special_stateids() 4662 static __be32 nfsd4_validate_stateid(struct nfs4_client *cl, stateid_t *stateid) in nfsd4_validate_stateid() argument 4667 if (ZERO_STATEID(stateid) || ONE_STATEID(stateid)) in nfsd4_validate_stateid() 4670 if (!same_clid(&stateid->si_opaque.so_clid, &cl->cl_clientid)) { in nfsd4_validate_stateid() 4679 s = find_stateid_locked(cl, stateid); in nfsd4_validate_stateid() 4682 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 | state.h | 581 struct nfsd4_compound_state *cstate, stateid_t *stateid, 584 stateid_t *stateid, unsigned char typemask,
|
D | nfs4layouts.c | 237 struct nfsd4_compound_state *cstate, stateid_t *stateid, in nfsd4_preprocess_layout_stateid() argument 248 status = nfsd4_lookup_stateid(cstate, stateid, typemask, &stid, in nfsd4_preprocess_layout_stateid() 272 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 | 1478 struct nfsd4_test_stateid_id *stateid; in nfsd4_decode_test_stateid() local 1486 stateid = svcxdr_tmpalloc(argp, sizeof(*stateid)); in nfsd4_decode_test_stateid() 1487 if (!stateid) { in nfsd4_decode_test_stateid() 1492 INIT_LIST_HEAD(&stateid->ts_id_list); in nfsd4_decode_test_stateid() 1493 list_add_tail(&stateid->ts_id_list, &test_stateid->ts_stateid_list); in nfsd4_decode_test_stateid() 1495 status = nfsd4_decode_stateid(argp, &stateid->ts_id_stateid); in nfsd4_decode_test_stateid() 4020 struct nfsd4_test_stateid_id *stateid, *next; in nfsd4_encode_test_stateid() local 4031 list_for_each_entry_safe(stateid, next, &test_stateid->ts_stateid_list, ts_id_list) { in nfsd4_encode_test_stateid() 4032 *p++ = stateid->ts_id_status; in nfsd4_encode_test_stateid()
|
D | nfs4proc.c | 980 stateid_t *stateid = &write->wr_stateid; in nfsd4_write() local 989 status = nfs4_preprocess_stateid_op(rqstp, cstate, stateid, WR_STATE, in nfsd4_write()
|
/linux-4.4.14/fs/nfs/filelayout/ |
D | filelayout.c | 309 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in filelayout_read_prepare() 402 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in filelayout_write_prepare()
|