Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\partitions\ldm.c Create Date:2022-07-28 17:28:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ldm_frag_commit - Validate fragmented VBLKs and add them to the database*@frags: Linked list of VBLK fragments*@ldb: Cache of the database structures* Now that all the fragmented VBLKs have been collected, they must be added to* the database for later use

Proto:static bool ldm_frag_commit(struct list_head *frags, struct ldmdb *ldb)

Type:bool

Parameter:

TypeParameterName
struct list_head *frags
struct ldmdb *ldb
1323  BUG_ON(!frags || !ldb)
1326  f = list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(item, structfrag, list)
1328  If Which portions are in use != 0xFF Then
1329  ldm_error("VBLK group %d is incomplete (0x%02x).", group, Which portions are in use )
1331  Return false
1334  If Not ldm_ldmdb_add - Adds a raw VBLK entry to the ldmdb database*@data: Raw VBLK to add to the database*@len: Size of the raw VBLK*@ldb: Cache of the database structures* The VBLKs are sorted into categories. Partitions are also sorted by offset.* N Then Return false
1337  Return true
Caller
NameDescribe
ldm_get_vblksldm_get_vblks - Read the on-disk database of VBLKs into memory*@state: Partition check state including device holding the LDM Database*@base: Offset, into @state->bdev, of the database*@ldb: Cache of the database structures* To use the information from