Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-28 20:14:06
Last Modify:2020-03-18 10:38:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:touch_buffer

Proto:inline void touch_buffer(struct buffer_head *bh)

Type:void

Parameter:

TypeParameterName
struct buffer_head *bh
62  lock_touch_buffer - mark a buffer accessed*@bh: buffer_head being touched* Called from touch_buffer().
63  Mark a page as having seen activity.* inactive,unreferenced -> inactive,referenced* inactive,referenced -> active,unreferenced* active,unreferenced -> active,referenced* When a newly allocated page is not yet visible, so safe for non-atomic ops,
Caller
NameDescribe
__find_get_blockPerform a pagecache lookup for the matching buffer. If it's there, refresh* it in the LRU and mark it as accessed. If it is not present then return* NULL