Lines Matching refs:stateid

43 		delegation->stateid.type = NFS4_INVALID_STATEID_TYPE;  in nfs_mark_delegation_revoked()
145 static int nfs_delegation_claim_locks(struct nfs4_state *state, const nfs4_stateid *stateid) in nfs_delegation_claim_locks() argument
163 status = nfs4_lock_delegation_recall(fl, state, stateid); in nfs_delegation_claim_locks()
178 const nfs4_stateid *stateid, fmode_t type) in nfs_delegation_claim_opens() argument
197 if (!nfs4_stateid_match(&state->stateid, stateid)) in nfs_delegation_claim_opens()
206 err = nfs4_open_delegation_recall(ctx, state, stateid); in nfs_delegation_claim_opens()
208 err = nfs_delegation_claim_locks(state, stateid); in nfs_delegation_claim_opens()
232 const nfs4_stateid *stateid, in nfs_inode_reclaim_delegation() argument
243 nfs4_stateid_copy(&delegation->stateid, stateid); in nfs_inode_reclaim_delegation()
260 nfs_inode_set_delegation(inode, cred, type, stateid, pagemod_limit); in nfs_inode_reclaim_delegation()
273 &delegation->stateid, in nfs_do_return_delegation()
405 if (nfs4_stateid_is_newer(&update->stateid, &delegation->stateid)) { in nfs_update_inplace_delegation()
406 delegation->stateid.seqid = update->stateid.seqid; in nfs_update_inplace_delegation()
432 const nfs4_stateid *stateid, in nfs_inode_set_delegation() argument
445 nfs4_stateid_copy(&delegation->stateid, stateid); in nfs_inode_set_delegation()
461 if (nfs4_stateid_match_other(&old_delegation->stateid, in nfs_inode_set_delegation()
462 &delegation->stateid)) { in nfs_inode_set_delegation()
547 err = nfs_delegation_claim_opens(inode, &delegation->stateid, in nfs_end_delegation_return()
923 const nfs4_stateid *stateid) in nfs_revoke_delegation() argument
933 if (stateid == NULL) { in nfs_revoke_delegation()
934 nfs4_stateid_copy(&tmp, &delegation->stateid); in nfs_revoke_delegation()
935 stateid = &tmp; in nfs_revoke_delegation()
937 if (!nfs4_stateid_match_other(stateid, &delegation->stateid)) in nfs_revoke_delegation()
940 if (stateid->seqid) { in nfs_revoke_delegation()
941 if (nfs4_stateid_is_newer(&delegation->stateid, stateid)) { in nfs_revoke_delegation()
945 delegation->stateid.seqid = stateid->seqid; in nfs_revoke_delegation()
954 nfs_inode_find_state_and_recover(inode, stateid); in nfs_revoke_delegation()
958 const nfs4_stateid *stateid) in nfs_remove_bad_delegation() argument
960 nfs_revoke_delegation(inode, stateid); in nfs_remove_bad_delegation()
965 const nfs4_stateid *stateid) in nfs_delegation_mark_returned() argument
978 if (!nfs4_stateid_match_other(stateid, &delegation->stateid)) in nfs_delegation_mark_returned()
980 if (stateid->seqid) { in nfs_delegation_mark_returned()
982 if (nfs4_stateid_is_newer(&delegation->stateid, stateid)) in nfs_delegation_mark_returned()
984 if (delegation->stateid.seqid != stateid->seqid) in nfs_delegation_mark_returned()
985 delegation->stateid.seqid = stateid->seqid; in nfs_delegation_mark_returned()
997 nfs_inode_find_state_and_recover(inode, stateid); in nfs_delegation_mark_returned()
1048 const nfs4_stateid *stateid) in nfs_async_inode_return_delegation() argument
1058 if (stateid != NULL && in nfs_async_inode_return_delegation()
1059 !clp->cl_mvops->match_stateid(&delegation->stateid, stateid)) in nfs_async_inode_return_delegation()
1219 if (delegation->stateid.type == NFS4_INVALID_STATEID_TYPE) in nfs_mark_test_expired_delegation()
1278 nfs4_stateid *stateid, in nfs_delegation_test_free_expired() argument
1287 status = ops->test_and_free_expired(server, stateid, cred); in nfs_delegation_test_free_expired()
1289 nfs_remove_bad_delegation(inode, stateid); in nfs_delegation_test_free_expired()
1298 nfs4_stateid stateid; in nfs_server_reap_expired_delegations() local
1315 nfs4_stateid_copy(&stateid, &delegation->stateid); in nfs_server_reap_expired_delegations()
1319 nfs_delegation_test_free_expired(inode, &stateid, cred); in nfs_server_reap_expired_delegations()
1350 const nfs4_stateid *stateid) in nfs_inode_find_delegation_state_and_recover() argument
1359 nfs4_stateid_match_or_older(&delegation->stateid, stateid) && in nfs_inode_find_delegation_state_and_recover()
1409 nfs4_stateid_match_other(dst, &delegation->stateid) && in nfs4_refresh_delegation_stateid()
1410 nfs4_stateid_is_newer(&delegation->stateid, dst) && in nfs4_refresh_delegation_stateid()
1412 dst->seqid = delegation->stateid.seqid; in nfs4_refresh_delegation_stateid()
1445 nfs4_stateid_copy(dst, &delegation->stateid); in nfs4_copy_delegation_stateid()