Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_objagg.c Create Date:2022-07-28 06:35:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:test_delta_action_item

Proto:static int test_delta_action_item(struct world *world, struct objagg *objagg, const struct action_item *action_item, bool inverse)

Type:int

Parameter:

TypeParameterName
struct world *world
struct objagg *objagg
const struct action_item *action_item
boolinverse
762  orig_delta_count = delta_count
763  orig_root_count = root_count
764  key_id = key_id
765  action = action
770  If inverse Then action = If action == ACTION_GET Then ACTION_PUT Else ACTION_GET
774  Case action == ACTION_GET
775  objagg_obj = world_obj_get(world, objagg, key_id)
776  If IS_ERR(objagg_obj) Then Return PTR_ERR(objagg_obj)
778  Break
779  Case action == ACTION_PUT
780  world_obj_put(world, objagg, key_id)
781  Break
784  If inverse Then Return 0
786  err = check_expect(world, action_item, orig_delta_count, orig_root_count)
788  If err Then Go to errout
791  err = check_expect_stats(objagg, & expect_stats, & errmsg)
792  If err Then
793  pr_err("Key %u: Stats: %s\n", key_id, errmsg)
794  Go to errout
797  Return 0
799  errout :
803  test_delta_action_item(world, objagg, action_item, true)
804  Return err
Caller
NameDescribe
test_delta_action_item
test_delta