Home
last modified time | relevance | path

Searched refs:objagg_obj (Results 1 – 2 of 2) sorted by relevance

/lib/
Dobjagg.c54 struct objagg_obj { struct
57 struct objagg_obj *parent; /* if the object is nested, this argument
72 static unsigned int objagg_obj_ref_inc(struct objagg_obj *objagg_obj) in objagg_obj_ref_inc() argument
74 return ++objagg_obj->refcount; in objagg_obj_ref_inc()
77 static unsigned int objagg_obj_ref_dec(struct objagg_obj *objagg_obj) in objagg_obj_ref_dec() argument
79 return --objagg_obj->refcount; in objagg_obj_ref_dec()
82 static void objagg_obj_stats_inc(struct objagg_obj *objagg_obj) in objagg_obj_stats_inc() argument
84 objagg_obj->stats.user_count++; in objagg_obj_stats_inc()
85 objagg_obj->stats.delta_user_count++; in objagg_obj_stats_inc()
86 if (objagg_obj->parent) in objagg_obj_stats_inc()
[all …]
Dtest_objagg.c33 struct objagg_obj *objagg_objs[NUM_KEYS];
46 static struct objagg_obj *world_obj_get(struct world *world, in world_obj_get()
50 struct objagg_obj *objagg_obj; in world_obj_get() local
55 objagg_obj = objagg_obj_get(objagg, &key); in world_obj_get()
56 if (IS_ERR(objagg_obj)) { in world_obj_get()
58 return objagg_obj; in world_obj_get()
61 world->objagg_objs[key_id_index(key_id)] = objagg_obj; in world_obj_get()
62 } else if (world->objagg_objs[key_id_index(key_id)] != objagg_obj) { in world_obj_get()
69 return objagg_obj; in world_obj_get()
72 objagg_obj_put(objagg, objagg_obj); in world_obj_get()
[all …]