Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pcpu_block_refresh_hint*@chunk: chunk of interest*@index: index of the metadata block* Scans over the block beginning at first_free and updates the block* metadata accordingly.

Proto:static void pcpu_block_refresh_hint(struct pcpu_chunk *chunk, int index)

Type:void

Parameter:

TypeParameterName
struct pcpu_chunk *chunk
intindex
750  block = metadata blocks + index
751  alloc_map = The following are helper functions to help access bitmaps and convert* between bitmap offsets to address offsets.
755  If scan hint for block Then
756  start = lock relative startingposition of the scan hint + scan hint for block
757  lock relative startingposition of the contig hint = lock relative startingposition of the scan hint
758  contig hint for block = scan hint for block
759  scan hint for block = 0
760  Else
761  start = lock position of first free
762  contig hint for block = 0
765  size of free space alongthe right side of the block = 0
770  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