permits 719 fs/afs/internal.h struct afs_permit permits[]; /* List of permits sorted by key pointer */ permits 82 fs/afs/security.c struct afs_permits *permits = permits 86 fs/afs/security.c for (i = 0; i < permits->nr_permits; i++) permits 87 fs/afs/security.c key_put(permits->permits[i].key); permits 88 fs/afs/security.c kfree(permits); permits 94 fs/afs/security.c void afs_put_permits(struct afs_permits *permits) permits 96 fs/afs/security.c if (permits && refcount_dec_and_test(&permits->usage)) { permits 98 fs/afs/security.c hash_del_rcu(&permits->hash_node); permits 100 fs/afs/security.c call_rcu(&permits->rcu, afs_permits_rcu); permits 109 fs/afs/security.c struct afs_permits *permits; permits 112 fs/afs/security.c permits = rcu_dereference_protected(vnode->permit_cache, permits 117 fs/afs/security.c afs_put_permits(permits); permits 124 fs/afs/security.c static void afs_hash_permits(struct afs_permits *permits) permits 126 fs/afs/security.c unsigned long h = permits->nr_permits; permits 129 fs/afs/security.c for (i = 0; i < permits->nr_permits; i++) { permits 130 fs/afs/security.c h += (unsigned long)permits->permits[i].key / sizeof(void *); permits 131 fs/afs/security.c h += permits->permits[i].access; permits 134 fs/afs/security.c permits->h = h; permits 146 fs/afs/security.c struct afs_permits *permits, *xpermits, *replacement, *zap, *new = NULL; permits 160 fs/afs/security.c permits = rcu_dereference(vnode->permit_cache); permits 161 fs/afs/security.c if (permits) { permits 162 fs/afs/security.c if (!permits->invalidated) { permits 163 fs/afs/security.c for (i = 0; i < permits->nr_permits; i++) { permits 164 fs/afs/security.c if (permits->permits[i].key < key) permits 166 fs/afs/security.c if (permits->permits[i].key > key) permits 168 fs/afs/security.c if (permits->permits[i].access != caller_access) { permits 185 fs/afs/security.c changed |= permits->invalidated; permits 186 fs/afs/security.c size = permits->nr_permits; permits 193 fs/afs/security.c if (permits != rcu_access_pointer(vnode->permit_cache)) permits 198 fs/afs/security.c afs_put_permits(permits); permits 199 fs/afs/security.c permits = NULL; permits 210 fs/afs/security.c if (permits && !refcount_inc_not_zero(&permits->usage)) permits 231 fs/afs/security.c if (permits) { permits 232 fs/afs/security.c for (i = 0; i < permits->nr_permits; i++) { permits 233 fs/afs/security.c if (j == i && permits->permits[i].key > key) { permits 234 fs/afs/security.c new->permits[j].key = key; permits 235 fs/afs/security.c new->permits[j].access = caller_access; permits 238 fs/afs/security.c new->permits[j].key = permits->permits[i].key; permits 239 fs/afs/security.c new->permits[j].access = permits->permits[i].access; permits 245 fs/afs/security.c new->permits[j].key = key; permits 246 fs/afs/security.c new->permits[j].access = caller_access; permits 258 fs/afs/security.c memcmp(xpermits->permits, new->permits, permits 271 fs/afs/security.c key_get(new->permits[i].key); permits 285 fs/afs/security.c zap == permits) permits 293 fs/afs/security.c afs_put_permits(permits); permits 309 fs/afs/security.c const struct afs_permits *permits; permits 322 fs/afs/security.c permits = rcu_dereference(vnode->permit_cache); permits 323 fs/afs/security.c if (permits) { permits 324 fs/afs/security.c for (i = 0; i < permits->nr_permits; i++) { permits 325 fs/afs/security.c if (permits->permits[i].key < key) permits 327 fs/afs/security.c if (permits->permits[i].key > key) permits 330 fs/afs/security.c *_access = permits->permits[i].access; permits 331 fs/afs/security.c _leave(" = %u [perm %x]", !permits->invalidated, *_access); permits 332 fs/afs/security.c return !permits->invalidated; permits 348 fs/afs/security.c struct afs_permits *permits; permits 362 fs/afs/security.c permits = rcu_dereference(vnode->permit_cache); permits 363 fs/afs/security.c if (permits) { permits 364 fs/afs/security.c for (i = 0; i < permits->nr_permits; i++) { permits 365 fs/afs/security.c if (permits->permits[i].key < key) permits 367 fs/afs/security.c if (permits->permits[i].key > key) permits 370 fs/afs/security.c *_access = permits->permits[i].access; permits 371 fs/afs/security.c valid = !permits->invalidated;