Lines Matching refs:delegation

1241 static int can_open_delegated(struct nfs_delegation *delegation, fmode_t fmode,  in can_open_delegated()  argument
1244 if (delegation == NULL) in can_open_delegated()
1246 if ((delegation->type & fmode) != fmode) in can_open_delegated()
1248 if (test_bit(NFS_DELEGATION_RETURNING, &delegation->flags)) in can_open_delegated()
1255 if (!test_bit(NFS_DELEGATION_NEED_RECLAIM, &delegation->flags)) in can_open_delegated()
1260 nfs_mark_delegation_referenced(delegation); in can_open_delegated()
1401 …teid(struct nfs4_state *state, nfs4_stateid *open_stateid, nfs4_stateid *delegation, fmode_t fmode) in update_open_stateid() argument
1410 deleg_cur = rcu_dereference(nfsi->delegation); in update_open_stateid()
1415 if (rcu_dereference(nfsi->delegation) != deleg_cur || in update_open_stateid()
1420 if (delegation == NULL) in update_open_stateid()
1421 delegation = &deleg_cur->stateid; in update_open_stateid()
1422 else if (!nfs4_stateid_match(&deleg_cur->stateid, delegation)) in update_open_stateid()
1463 struct nfs_delegation *delegation; in nfs4_return_incompatible_delegation() local
1466 delegation = rcu_dereference(NFS_I(inode)->delegation); in nfs4_return_incompatible_delegation()
1467 if (delegation == NULL || (delegation->type & fmode) == fmode) { in nfs4_return_incompatible_delegation()
1479 struct nfs_delegation *delegation; in nfs4_try_open_cached() local
1495 delegation = rcu_dereference(nfsi->delegation); in nfs4_try_open_cached()
1496 if (!can_open_delegated(delegation, fmode, claim)) { in nfs4_try_open_cached()
1501 nfs4_stateid_copy(&stateid, &delegation->stateid); in nfs4_try_open_cached()
1526 struct nfs_delegation *delegation; in nfs4_opendata_check_deleg() local
1530 delegation = rcu_dereference(NFS_I(state->inode)->delegation); in nfs4_opendata_check_deleg()
1531 if (delegation) in nfs4_opendata_check_deleg()
1532 delegation_flags = delegation->flags; in nfs4_opendata_check_deleg()
1737 struct nfs_delegation *delegation; in _nfs4_do_open_reclaim() local
1747 delegation = rcu_dereference(NFS_I(state->inode)->delegation); in _nfs4_do_open_reclaim()
1748 if (delegation != NULL && test_bit(NFS_DELEGATION_NEED_RECLAIM, &delegation->flags) != 0) in _nfs4_do_open_reclaim()
1749 delegation_type = delegation->type; in _nfs4_do_open_reclaim()
1852 nfs4_stateid_copy(&opendata->o_arg.u.delegation, stateid); in nfs4_open_delegation_recall()
1977 struct nfs_delegation *delegation; in nfs4_open_prepare() local
1982 delegation = rcu_dereference(NFS_I(data->state->inode)->delegation); in nfs4_open_prepare()
1983 if (can_open_delegated(delegation, data->o_arg.fmode, claim)) in nfs4_open_prepare()
2312 if (rcu_access_pointer(NFS_I(state->inode)->delegation) != NULL) in nfs40_clear_delegation_stateid()
2328 struct nfs_delegation *delegation; in nfs41_check_delegation_stateid() local
2334 delegation = rcu_dereference(NFS_I(state->inode)->delegation); in nfs41_check_delegation_stateid()
2335 if (delegation == NULL) { in nfs41_check_delegation_stateid()
2340 nfs4_stateid_copy(&stateid, &delegation->stateid); in nfs41_check_delegation_stateid()
2341 cred = get_rpccred(delegation->cred); in nfs41_check_delegation_stateid()