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()
915 struct objagg *objagg2; in test_hints_case()
916 struct objagg *objagg; in test_hints_case() local
921 objagg = objagg_create(&delta_ops, NULL, &world); in test_hints_case()
922 if (IS_ERR(objagg)) in test_hints_case()
923 return PTR_ERR(objagg); in test_hints_case()
926 objagg_obj = world_obj_get(&world, objagg, in test_hints_case()
934 pr_debug_stats(objagg); in test_hints_case()
935 err = check_expect_stats(objagg, &hints_case->expect_stats, &errmsg); in test_hints_case()
941 hints = objagg_hints_get(objagg, OBJAGG_OPT_ALGO_SIMPLE_GREEDY); in test_hints_case()
981 world_obj_put(&world2, objagg, hints_case->key_ids[i]); in test_hints_case()
990 world_obj_put(&world, objagg, hints_case->key_ids[i]); in test_hints_case()
992 objagg_destroy(objagg); in test_hints_case()