Home
last modified time | relevance | path

Searched full:delegation (Results 1 – 25 of 107) sorted by relevance

12345

/kernel/linux/linux-6.6/fs/nfs/
Ddelegation.c3 * linux/fs/nfs/delegation.c
7 * NFS file delegation management
24 #include "delegation.h"
33 static void __nfs_free_delegation(struct nfs_delegation *delegation) in __nfs_free_delegation() argument
35 put_cred(delegation->cred); in __nfs_free_delegation()
36 delegation->cred = NULL; in __nfs_free_delegation()
37 kfree_rcu(delegation, rcu); in __nfs_free_delegation()
40 static void nfs_mark_delegation_revoked(struct nfs_delegation *delegation) in nfs_mark_delegation_revoked() argument
42 if (!test_and_set_bit(NFS_DELEGATION_REVOKED, &delegation->flags)) { in nfs_mark_delegation_revoked()
43 delegation->stateid.type = NFS4_INVALID_STATEID_TYPE; in nfs_mark_delegation_revoked()
[all …]
Ddelegation.h3 * linux/fs/nfs/delegation.h
14 * NFSv4 delegation
68 /* NFSv4 delegation-related procedures */
76 void nfs_mark_delegation_referenced(struct nfs_delegation *delegation);
Dcallback_proc.c20 #include "delegation.h"
33 struct nfs_delegation *delegation; in nfs4_callback_getattr() local
55 delegation = nfs4_get_valid_delegation(inode); in nfs4_callback_getattr()
56 if (delegation == NULL || (delegation->type & FMODE_WRITE) == 0) in nfs4_callback_getattr()
59 res->change_attr = delegation->change_attr; in nfs4_callback_getattr()
101 /* Set up a helper thread to actually return the delegation */ in nfs4_callback_recall()
Dnfs4proc.c60 #include "delegation.h"
1315 /* Want no delegation if we're using O_DIRECT */ in nfs4_map_atomic_open_share()
1526 static int can_open_delegated(struct nfs_delegation *delegation, fmode_t fmode, in can_open_delegated() argument
1529 if (delegation == NULL) in can_open_delegated()
1531 if ((delegation->type & fmode) != fmode) in can_open_delegated()
1538 if (!test_bit(NFS_DELEGATION_NEED_RECLAIM, &delegation->flags)) in can_open_delegated()
1544 nfs_mark_delegation_referenced(delegation); in can_open_delegated()
1798 const nfs4_stateid *delegation, in update_open_stateid() argument
1822 if (rcu_dereference(nfsi->delegation) != deleg_cur || in update_open_stateid()
1827 if (delegation == NULL) in update_open_stateid()
[all …]
Dnfs4super.c11 #include "delegation.h"
66 /* If we are holding a delegation, return and free it */ in nfs4_evict_inode()
DMakefile27 delegation.o nfs4idmap.o callback.o callback_xdr.o callback_proc.o \
Dnfs4file.c13 #include "delegation.h"
122 * If we're holding a write delegation, then check if we're required in nfs4_file_flush()
/kernel/linux/linux-5.10/fs/nfs/
Ddelegation.c3 * linux/fs/nfs/delegation.c
7 * NFS file delegation management
24 #include "delegation.h"
33 static void __nfs_free_delegation(struct nfs_delegation *delegation) in __nfs_free_delegation() argument
35 put_cred(delegation->cred); in __nfs_free_delegation()
36 delegation->cred = NULL; in __nfs_free_delegation()
37 kfree_rcu(delegation, rcu); in __nfs_free_delegation()
40 static void nfs_mark_delegation_revoked(struct nfs_delegation *delegation) in nfs_mark_delegation_revoked() argument
42 if (!test_and_set_bit(NFS_DELEGATION_REVOKED, &delegation->flags)) { in nfs_mark_delegation_revoked()
43 delegation->stateid.type = NFS4_INVALID_STATEID_TYPE; in nfs_mark_delegation_revoked()
[all …]
Ddelegation.h3 * linux/fs/nfs/delegation.h
14 * NFSv4 delegation
68 /* NFSv4 delegation-related procedures */
76 void nfs_mark_delegation_referenced(struct nfs_delegation *delegation);
Dcallback_proc.c15 #include "delegation.h"
28 struct nfs_delegation *delegation; in nfs4_callback_getattr() local
50 delegation = nfs4_get_valid_delegation(inode); in nfs4_callback_getattr()
51 if (delegation == NULL || (delegation->type & FMODE_WRITE) == 0) in nfs4_callback_getattr()
54 res->change_attr = delegation->change_attr; in nfs4_callback_getattr()
96 /* Set up a helper thread to actually return the delegation */ in nfs4_callback_recall()
Dnfs4proc.c60 #include "delegation.h"
1299 /* Want no delegation if we're using O_DIRECT */ in nfs4_map_atomic_open_share()
1521 static int can_open_delegated(struct nfs_delegation *delegation, fmode_t fmode, in can_open_delegated() argument
1524 if (delegation == NULL) in can_open_delegated()
1526 if ((delegation->type & fmode) != fmode) in can_open_delegated()
1533 if (!test_bit(NFS_DELEGATION_NEED_RECLAIM, &delegation->flags)) in can_open_delegated()
1539 nfs_mark_delegation_referenced(delegation); in can_open_delegated()
1793 const nfs4_stateid *delegation, in update_open_stateid() argument
1817 if (rcu_dereference(nfsi->delegation) != deleg_cur || in update_open_stateid()
1822 if (delegation == NULL) in update_open_stateid()
[all …]
Dnfs4super.c11 #include "delegation.h"
66 /* If we are holding a delegation, return and free it */ in nfs4_evict_inode()
DMakefile27 delegation.o nfs4idmap.o callback.o callback_xdr.o callback_proc.o \
/kernel/linux/linux-5.10/fs/nfsd/
Dstate.h121 * Represents a delegation stateid. The nfs4_client holds references to these
122 * and they are put when it is being destroyed or when the delegation is
125 * o 1 reference as long as a delegation is still in force (taken when it's
132 * with that delegation without holding the cl_lock
134 * If the server attempts to recall a delegation and the client doesn't do so
135 * before a timeout, the server may also revoke the delegation. In that case,
145 struct list_head dl_recall_lru; /* delegation recalled */
157 /* client delegation callback info */
492 * on a file from a particular client.'od' stands for 'open & delegation'
/kernel/linux/linux-6.6/fs/nfsd/
Dstate.h121 * Represents a delegation stateid. The nfs4_client holds references to these
122 * and they are put when it is being destroyed or when the delegation is
125 * o 1 reference as long as a delegation is still in force (taken when it's
132 * with that delegation without holding the cl_lock
134 * If the server attempts to recall a delegation and the client doesn't do so
135 * before a timeout, the server may also revoke the delegation. In that case,
145 struct list_head dl_recall_lru; /* delegation recalled */
158 /* client delegation callback info */
527 * on a file from a particular client.'od' stands for 'open & delegation'
Dnfs4state.c858 * Allocate a new open/delegation state counter. This is needed for
1082 * When we recall a delegation, we should be careful not to hand it
1086 * If a filehandle appear in either filter, a delegation is blocked.
1087 * When a delegation is recalled, the filehandle is stored in the "new"
1175 * delegation seqid's are never incremented. The 4.1 special in alloc_init_deleg()
1267 * nfs4_delegation_exists - Discover if this delegation already exists
1268 * @clp: a pointer to the nfs4_client we're granting a delegation to
1269 * @fp: a pointer to the nfs4_file we're granting a delegation on
1272 * On success: true iff an existing delegation is found
1294 * hash_delegation_locked - Add a delegation to the appropriate lists
[all …]
/kernel/linux/linux-5.10/fs/
Dattr.c269 * If notify_change discovers a delegation in need of breaking,
271 * delegated_inode. The caller should then break the delegation and
272 * retry. Because breaking a delegation may take a long time, the
278 * the file open for write, as there can be no conflicting delegation in
/kernel/linux/linux-6.6/fs/
Dattr.c363 * If notify_change discovers a delegation in need of breaking,
365 * delegated_inode. The caller should then break the delegation and
366 * retry. Because breaking a delegation may take a long time, the
372 * the file open for write, as there can be no conflicting delegation in
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-class-net-qmi20 through the delegation of the QMI protocol. Userspace
/kernel/linux/linux-6.6/Documentation/ABI/testing/
Dsysfs-class-net-qmi20 through the delegation of the QMI protocol. Userspace
/kernel/linux/linux-5.10/Documentation/admin-guide/
Dcgroup-v2.rst29 2-5. Delegation
30 2-5-1. Model of Delegation
31 2-5-2. Delegation Containment
176 Consider cgroup namespaces as delegation boundaries. This
180 Delegation section for details.
467 Delegation section in Basic Operations
470 Model of Delegation argument
487 The end results are equivalent for both delegation types. Once
500 Delegation Containment argument
532 destination cgroup C00 is above the points of delegation and U0 would
[all …]
/kernel/linux/linux-5.10/include/linux/
Dnfs_fs.h100 * NFSv4 delegation
181 struct nfs_delegation __rcu *delegation; member
234 #define NFS_INO_REVAL_FORCED BIT(6) /* force revalidation ignoring a delegation */
/kernel/linux/linux-5.10/sound/usb/
Dmixer.h28 /* optional connector delegation map */
/kernel/linux/linux-6.6/sound/usb/
Dmixer.h28 /* optional connector delegation map */
/kernel/linux/linux-6.6/include/linux/
Dnfs_fs.h117 * NFSv4 delegation
235 struct nfs_delegation __rcu *delegation; member
288 #define NFS_INO_REVAL_FORCED BIT(6) /* force revalidation ignoring a delegation */

12345