Lines Matching defs:hierarchy
46 * hierarchy = NULL
308 static void get_hierarchy(struct landlock_hierarchy *const hierarchy)
310 if (hierarchy)
311 refcount_inc(&hierarchy->usage);
314 static void put_hierarchy(struct landlock_hierarchy *hierarchy)
316 while (hierarchy && refcount_dec_and_test(&hierarchy->usage)) {
317 const struct landlock_hierarchy *const freeme = hierarchy;
319 hierarchy = hierarchy->parent;
376 if (WARN_ON_ONCE(!dst || !dst->hierarchy))
473 if (WARN_ON_ONCE(!parent->hierarchy)) {
477 get_hierarchy(parent->hierarchy);
478 child->hierarchy->parent = parent->hierarchy;
501 put_hierarchy(ruleset->hierarchy);
561 new_dom->hierarchy =
562 kzalloc(sizeof(*new_dom->hierarchy), GFP_KERNEL_ACCOUNT);
563 if (!new_dom->hierarchy) {
567 refcount_set(&new_dom->hierarchy->usage, 1);