Lines Matching refs:stateid

96 …on_claim_locks(struct nfs_open_context *ctx, struct nfs4_state *state, const nfs4_stateid *stateid)  in nfs_delegation_claim_locks()  argument
114 status = nfs4_lock_delegation_recall(fl, state, stateid); in nfs_delegation_claim_locks()
129 const nfs4_stateid *stateid, fmode_t type) in nfs_delegation_claim_opens() argument
148 if (!nfs4_stateid_match(&state->stateid, stateid)) in nfs_delegation_claim_opens()
156 err = nfs4_open_delegation_recall(ctx, state, stateid, type); in nfs_delegation_claim_opens()
158 err = nfs_delegation_claim_locks(ctx, state, stateid); in nfs_delegation_claim_opens()
182 const nfs4_stateid *stateid, in nfs_inode_reclaim_delegation() argument
193 nfs4_stateid_copy(&delegation->stateid, stateid); in nfs_inode_reclaim_delegation()
210 nfs_inode_set_delegation(inode, cred, type, stateid, pagemod_limit); in nfs_inode_reclaim_delegation()
220 &delegation->stateid, in nfs_do_return_delegation()
326 if (nfs4_stateid_is_newer(&update->stateid, &delegation->stateid)) { in nfs_update_inplace_delegation()
327 delegation->stateid.seqid = update->stateid.seqid; in nfs_update_inplace_delegation()
345 const nfs4_stateid *stateid, in nfs_inode_set_delegation() argument
358 nfs4_stateid_copy(&delegation->stateid, stateid); in nfs_inode_set_delegation()
372 if (nfs4_stateid_match_other(&old_delegation->stateid, in nfs_inode_set_delegation()
373 &delegation->stateid)) { in nfs_inode_set_delegation()
434 err = nfs_delegation_claim_opens(inode, &delegation->stateid, in nfs_end_delegation_return()
734 delegation->stateid.type = NFS4_INVALID_STATEID_TYPE; in nfs_mark_delegation_revoked()
739 const nfs4_stateid *stateid) in nfs_revoke_delegation() argument
749 if (stateid == NULL) { in nfs_revoke_delegation()
750 nfs4_stateid_copy(&tmp, &delegation->stateid); in nfs_revoke_delegation()
751 stateid = &tmp; in nfs_revoke_delegation()
752 } else if (!nfs4_stateid_match(stateid, &delegation->stateid)) in nfs_revoke_delegation()
759 nfs_inode_find_state_and_recover(inode, stateid); in nfs_revoke_delegation()
764 const nfs4_stateid *stateid) in nfs_remove_bad_delegation() argument
768 if (!nfs_revoke_delegation(inode, stateid)) in nfs_remove_bad_delegation()
824 const nfs4_stateid *stateid) in nfs_async_inode_return_delegation() argument
834 if (stateid != NULL && in nfs_async_inode_return_delegation()
835 !clp->cl_mvops->match_stateid(&delegation->stateid, stateid)) in nfs_async_inode_return_delegation()
982 if (delegation->stateid.type == NFS4_INVALID_STATEID_TYPE) in nfs_mark_test_expired_delegation()
1043 nfs4_stateid stateid; in nfs_reap_expired_delegations() local
1065 nfs4_stateid_copy(&stateid, &delegation->stateid); in nfs_reap_expired_delegations()
1069 ops->test_and_free_expired(server, &stateid, cred) < 0) { in nfs_reap_expired_delegations()
1070 nfs_revoke_delegation(inode, &stateid); in nfs_reap_expired_delegations()
1071 nfs_inode_find_state_and_recover(inode, &stateid); in nfs_reap_expired_delegations()
1090 const nfs4_stateid *stateid) in nfs_inode_find_delegation_state_and_recover() argument
1099 nfs4_stateid_match_other(&delegation->stateid, stateid)) { in nfs_inode_find_delegation_state_and_recover()
1148 nfs4_stateid_match_other(dst, &delegation->stateid)) { in nfs4_refresh_delegation_stateid()
1149 dst->seqid = delegation->stateid.seqid; in nfs4_refresh_delegation_stateid()
1179 nfs4_stateid_copy(dst, &delegation->stateid); in nfs4_copy_delegation_stateid()