• Home
  • Raw
  • Download

Lines Matching refs:delegation

1446 static int can_open_delegated(struct nfs_delegation *delegation, fmode_t fmode,  in can_open_delegated()  argument
1449 if (delegation == NULL) in can_open_delegated()
1451 if ((delegation->type & fmode) != fmode) in can_open_delegated()
1458 if (!test_bit(NFS_DELEGATION_NEED_RECLAIM, &delegation->flags)) in can_open_delegated()
1464 nfs_mark_delegation_referenced(delegation); in can_open_delegated()
1731 const nfs4_stateid *delegation, in update_open_stateid() argument
1750 deleg_cur = rcu_dereference(nfsi->delegation); in update_open_stateid()
1755 if (rcu_dereference(nfsi->delegation) != deleg_cur || in update_open_stateid()
1760 if (delegation == NULL) in update_open_stateid()
1761 delegation = &deleg_cur->stateid; in update_open_stateid()
1762 else if (!nfs4_stateid_match(&deleg_cur->stateid, delegation)) in update_open_stateid()
1805 struct nfs_delegation *delegation; in nfs4_return_incompatible_delegation() local
1809 delegation = rcu_dereference(NFS_I(inode)->delegation); in nfs4_return_incompatible_delegation()
1810 if (delegation == NULL || (delegation->type & fmode) == fmode) { in nfs4_return_incompatible_delegation()
1821 struct nfs_delegation *delegation; in nfs4_try_open_cached() local
1837 delegation = nfs4_get_valid_delegation(state->inode); in nfs4_try_open_cached()
1838 if (!can_open_delegated(delegation, fmode, claim)) { in nfs4_try_open_cached()
1843 nfs4_stateid_copy(&stateid, &delegation->stateid); in nfs4_try_open_cached()
1868 struct nfs_delegation *delegation; in nfs4_opendata_check_deleg() local
1872 delegation = rcu_dereference(NFS_I(state->inode)->delegation); in nfs4_opendata_check_deleg()
1873 if (delegation) in nfs4_opendata_check_deleg()
1874 delegation_flags = delegation->flags; in nfs4_opendata_check_deleg()
1891 &data->o_res.delegation, in nfs4_opendata_check_deleg()
1897 &data->o_res.delegation, in nfs4_opendata_check_deleg()
1902 &data->o_res.delegation); in nfs4_opendata_check_deleg()
2132 struct nfs_delegation *delegation; in _nfs4_do_open_reclaim() local
2142 delegation = rcu_dereference(NFS_I(state->inode)->delegation); in _nfs4_do_open_reclaim()
2143 if (delegation != NULL && test_bit(NFS_DELEGATION_NEED_RECLAIM, &delegation->flags) != 0) in _nfs4_do_open_reclaim()
2144 delegation_type = delegation->type; in _nfs4_do_open_reclaim()
2249 nfs4_stateid_copy(&opendata->o_arg.u.delegation, stateid); in nfs4_open_delegation_recall()
2374 struct nfs_delegation *delegation; in nfs4_open_prepare() local
2380 delegation = nfs4_get_valid_delegation(data->state->inode); in nfs4_open_prepare()
2381 if (can_open_delegated(delegation, data->o_arg.fmode, claim)) in nfs4_open_prepare()
2713 if (rcu_access_pointer(NFS_I(state->inode)->delegation) != NULL) in nfs40_clear_delegation_stateid()
2768 struct nfs_delegation *delegation; in nfs41_check_delegation_stateid() local
2774 delegation = rcu_dereference(NFS_I(state->inode)->delegation); in nfs41_check_delegation_stateid()
2775 if (delegation == NULL) { in nfs41_check_delegation_stateid()
2781 nfs4_stateid_copy(&stateid, &delegation->stateid); in nfs41_check_delegation_stateid()
2784 &delegation->flags)) { in nfs41_check_delegation_stateid()
2789 if (delegation->cred) in nfs41_check_delegation_stateid()
2790 cred = get_cred(delegation->cred); in nfs41_check_delegation_stateid()