Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:create_page_buffers

Proto:static struct buffer_head *create_page_buffers(struct page *page, struct inode *inode, unsigned int b_state)

Type:struct buffer_head

Parameter:

TypeParameterName
struct page *page
struct inode *inode
unsigned intb_state
1672  BUG_ON(!PageLocked(page))
1674  If Not page_has_buffers(page) Then We attach and possibly dirty the buffers atomically wrt* __set_page_dirty_buffers() via private_lock. try_to_free_buffers* is already excluded via the page lock.
1677  Return If we *know* page->private refers to buffer_heads (page)
Caller
NameDescribe
__block_write_full_pageWhile block_write_full_page is writing back the dirty buffers under* the page lock, whoever dirtied the buffers may decide to clean them* again at any time
__block_write_begin_int
block_read_full_pageGeneric "read page" function for block devices that have the normal* get_block functionality