Home
last modified time | relevance | path

Searched refs:delegation (Results 1 – 9 of 9) sorted by relevance

/linux-4.19.296/fs/nfs/
Ddelegation.c27 static void nfs_free_delegation(struct nfs_delegation *delegation) in nfs_free_delegation() argument
29 if (delegation->cred) { in nfs_free_delegation()
30 put_rpccred(delegation->cred); in nfs_free_delegation()
31 delegation->cred = NULL; in nfs_free_delegation()
33 kfree_rcu(delegation, rcu); in nfs_free_delegation()
41 void nfs_mark_delegation_referenced(struct nfs_delegation *delegation) in nfs_mark_delegation_referenced() argument
43 set_bit(NFS_DELEGATION_REFERENCED, &delegation->flags); in nfs_mark_delegation_referenced()
47 nfs4_is_valid_delegation(const struct nfs_delegation *delegation, in nfs4_is_valid_delegation() argument
50 if (delegation != NULL && (delegation->type & flags) == flags && in nfs4_is_valid_delegation()
51 !test_bit(NFS_DELEGATION_REVOKED, &delegation->flags) && in nfs4_is_valid_delegation()
[all …]
Dcallback_proc.c28 struct nfs_delegation *delegation; in nfs4_callback_getattr() local
52 delegation = rcu_dereference(nfsi->delegation); in nfs4_callback_getattr()
53 if (delegation == NULL || (delegation->type & FMODE_WRITE) == 0) in nfs4_callback_getattr()
56 res->change_attr = delegation->change_attr; in nfs4_callback_getattr()
DMakefile26 delegation.o nfs4idmap.o callback.o callback_xdr.o callback_proc.o \
Ddelegation.h71 void nfs_mark_delegation_referenced(struct nfs_delegation *delegation);
Dnfs4proc.c1393 static int can_open_delegated(struct nfs_delegation *delegation, fmode_t fmode, in can_open_delegated() argument
1396 if (delegation == NULL) in can_open_delegated()
1398 if ((delegation->type & fmode) != fmode) in can_open_delegated()
1405 if (!test_bit(NFS_DELEGATION_NEED_RECLAIM, &delegation->flags)) in can_open_delegated()
1411 nfs_mark_delegation_referenced(delegation); in can_open_delegated()
1666 const nfs4_stateid *delegation, in update_open_stateid() argument
1685 deleg_cur = rcu_dereference(nfsi->delegation); in update_open_stateid()
1690 if (rcu_dereference(nfsi->delegation) != deleg_cur || in update_open_stateid()
1695 if (delegation == NULL) in update_open_stateid()
1696 delegation = &deleg_cur->stateid; in update_open_stateid()
[all …]
Dinode.c2090 nfsi->delegation = NULL; in nfs4_init_once()
Dnfs4xdr.c1537 encode_claim_delegate_cur(xdr, arg->name, &arg->u.delegation); in encode_open()
1543 encode_claim_delegate_cur_fh(xdr, &arg->u.delegation); in encode_open()
5175 status = decode_delegation_stateid(xdr, &res->delegation); in decode_rw_delegation()
/linux-4.19.296/include/linux/
Dnfs_fs.h174 struct nfs_delegation __rcu *delegation; member
Dnfs_xdr.h428 nfs4_stateid delegation; /* CLAIM_DELEGATE_CUR */ member
453 nfs4_stateid delegation; member