Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\percpu.c Create Date:2022-07-28 14:26:03
Last Modify:2022-05-23 13:52:24 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pcpu_chunk_refresh_hint - updates metadata about a chunk*@chunk: chunk of interest*@full_scan: if we should scan from the beginning* Iterates over the metadata blocks to find the largest contig area

Proto:static void pcpu_chunk_refresh_hint(struct pcpu_chunk *chunk, bool full_scan)

Type:void

Parameter:

TypeParameterName
struct pcpu_chunk *chunk
boolfull_scan
720  chunk_md = chunk_md
724  If Not full_scan && scan hint for block Then
725  bit_off = lock relative startingposition of the scan hint + scan hint for block
726  lock relative startingposition of the contig hint = lock relative startingposition of the scan hint
727  contig hint for block = scan hint for block
728  scan hint for block = 0
729  Else
730  bit_off = lock position of first free
731  contig hint for block = 0
734  bits = 0
736  pcpu_block_update - updates a block given a free area*@block: block of interest*@start: start offset in block*@end: end offset in block* Updates a block given a known free area. The region [start, end) is
Caller
NameDescribe
pcpu_block_update_hint_allocpcpu_block_update_hint_alloc - update hint on allocation path*@chunk: chunk of interest*@bit_off: chunk offset*@bits: size of request* Updates metadata for the allocation path. The metadata only has to be
pcpu_block_update_hint_freepcpu_block_update_hint_free - updates the block hints on the free path*@chunk: chunk of interest*@bit_off: chunk offset*@bits: size of request* Updates metadata for the allocation path. This avoids a blind block