Lines Matching refs:objagg
47 struct objagg *objagg, in world_obj_get() argument
55 objagg_obj = objagg_obj_get(objagg, &key); in world_obj_get()
72 objagg_obj_put(objagg, objagg_obj); in world_obj_get()
76 static void world_obj_put(struct world *world, struct objagg *objagg, in world_obj_put() argument
84 objagg_obj_put(objagg, objagg_obj); in world_obj_put()
151 static int test_nodelta_obj_get(struct world *world, struct objagg *objagg, in test_nodelta_obj_get() argument
163 objagg_obj = world_obj_get(world, objagg, key_id); in test_nodelta_obj_get()
200 objagg_obj_put(objagg, objagg_obj); in test_nodelta_obj_get()
204 static int test_nodelta_obj_put(struct world *world, struct objagg *objagg, in test_nodelta_obj_put() argument
209 world_obj_put(world, objagg, key_id); in test_nodelta_obj_put()
226 static int check_stats_zero(struct objagg *objagg) in check_stats_zero() argument
231 stats = objagg_stats_get(objagg); in check_stats_zero()
244 static int check_stats_nodelta(struct objagg *objagg) in check_stats_nodelta() argument
250 stats = objagg_stats_get(objagg); in check_stats_nodelta()
307 struct objagg *objagg; in test_nodelta() local
311 objagg = objagg_create(&nodelta_ops, NULL, &world); in test_nodelta()
312 if (IS_ERR(objagg)) in test_nodelta()
313 return PTR_ERR(objagg); in test_nodelta()
315 err = check_stats_zero(objagg); in test_nodelta()
321 err = test_nodelta_obj_get(&world, objagg, i, true); in test_nodelta()
330 err = test_nodelta_obj_get(&world, objagg, i, false); in test_nodelta()
335 err = check_stats_nodelta(objagg); in test_nodelta()
340 err = test_nodelta_obj_put(&world, objagg, i, false); in test_nodelta()
345 err = test_nodelta_obj_put(&world, objagg, i, true); in test_nodelta()
350 err = check_stats_zero(objagg); in test_nodelta()
354 objagg_destroy(objagg); in test_nodelta()
361 world_obj_put(&world, objagg, i); in test_nodelta()
367 world_obj_put(&world, objagg, i); in test_nodelta()
370 objagg_destroy(objagg); in test_nodelta()
740 static int check_expect_stats(struct objagg *objagg, in check_expect_stats() argument
747 stats = objagg_stats_get(objagg); in check_expect_stats()
758 struct objagg *objagg, in test_delta_action_item() argument
775 objagg_obj = world_obj_get(world, objagg, key_id); in test_delta_action_item()
780 world_obj_put(world, objagg, key_id); in test_delta_action_item()
791 err = check_expect_stats(objagg, &action_item->expect_stats, &errmsg); in test_delta_action_item()
803 test_delta_action_item(world, objagg, action_item, true); in test_delta_action_item()
810 struct objagg *objagg; in test_delta() local
814 objagg = objagg_create(&delta_ops, NULL, &world); in test_delta()
815 if (IS_ERR(objagg)) in test_delta()
816 return PTR_ERR(objagg); in test_delta()
819 err = test_delta_action_item(&world, objagg, in test_delta()
825 objagg_destroy(objagg); in test_delta()
830 test_delta_action_item(&world, objagg, &action_items[i], true); in test_delta()
832 objagg_destroy(objagg); in test_delta()
872 static void pr_debug_stats(struct objagg *objagg) in pr_debug_stats() argument
876 stats = objagg_stats_get(objagg); in pr_debug_stats()
912 struct objagg_hints *hints, struct objagg *objagg) in test_hints_case2() argument
916 struct objagg *objagg2; in test_hints_case2()
955 world_obj_put(&world2, objagg, hints_case->key_ids[i]); in test_hints_case2()
967 struct objagg *objagg; in test_hints_case() local
972 objagg = objagg_create(&delta_ops, NULL, &world); in test_hints_case()
973 if (IS_ERR(objagg)) in test_hints_case()
974 return PTR_ERR(objagg); in test_hints_case()
977 objagg_obj = world_obj_get(&world, objagg, in test_hints_case()
985 pr_debug_stats(objagg); in test_hints_case()
986 err = check_expect_stats(objagg, &hints_case->expect_stats, &errmsg); in test_hints_case()
992 hints = objagg_hints_get(objagg, OBJAGG_OPT_ALGO_SIMPLE_GREEDY); in test_hints_case()
998 err = test_hints_case2(hints_case, hints, objagg); in test_hints_case()
1005 world_obj_put(&world, objagg, hints_case->key_ids[i]); in test_hints_case()
1007 objagg_destroy(objagg); in test_hints_case()