Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:btree_merge

Proto:int btree_merge(struct btree_head *target, struct btree_head *victim, struct btree_geo *geo, gfp_t gfp)

Type:int

Parameter:

TypeParameterName
struct btree_head *target
struct btree_head *victim
struct btree_geo *geo
gfp_tgfp
647  BUG_ON(target == victim)
649  If Not node Then
651  node = node
652  height = height
653  __btree_init(victim)
654  Return 0
660  cycle
661  If Not btree_last(victim, geo, key) Then Break
663  val = btree_lookup(victim, geo, key)
664  err = btree_insert(target, geo, key, val, gfp)
665  If err Then Return err
669  longcpy(dup, key, keylen)
670  btree_remove(victim, geo, dup)
672  Return 0