Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:void create_empty_buffers(struct page *page, unsigned long blocksize, unsigned long b_state)

Type:void

Parameter:

TypeParameterName
struct page *page
unsigned longblocksize
unsigned longb_state
1558  head = Create the appropriate buffers when given a page for data area and* the size of each buffer
1559  bh = head
1560  Do
1561  buffer state bitmap (see above) |= b_state
1562  tail = bh
1563  bh = circular list of page's buffers
1564  When bh cycle
1565  circular list of page's buffers = head
1567  spin_lock( & private_lock)
1568  If PageUptodate(page) || PageDirty(page) Then
1569  bh = head
1570  Do
1571  If PageDirty(page) Then set_buffer_dirty(bh)
1576  When bh != head cycle
1578  line definitions
1579  spin_unlock( & private_lock)
Caller
NameDescribe
create_page_buffers
block_truncate_page
map_buffer_to_pagesupport function for mpage_readpages