函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-29 10:45:14
Last Modify:2020-03-18 10:38:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:void create_empty_buffers(struct page *page, unsigned long blocksize, unsigned long b_state)

返回类型:void

参数:

类型参数名称
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  循环
1561  buffer state bitmap (see above) 或等于b_state
1562  tail等于bh
1563  bh等于 circular list of page's buffers
1564 bh循环
1565  circular list of page's buffers 等于head
1567  加自旋锁
1568  如果PageUptodate(page)或PageDirty(page)则
1569  bh等于head
1570  循环
1571  如果PageDirty(page)则set_buffer_dirty(bh)
1576 bh不等于head循环
1578  line definitions
1579  自旋锁解锁
调用者
名称描述
create_page_buffers
block_truncate_page
map_buffer_to_pagesupport function for mpage_readpages