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:Returns if the page has dirty or writeback buffers. If all the buffers* are unlocked and clean then the PageDirty information is stale. If* any of the pages are locked, it is assumed they are locked for IO.

Proto:void buffer_check_dirty_writeback(struct page *page, bool *dirty, bool *writeback)

Type:void

Parameter:

TypeParameterName
struct page *page
bool *dirty
bool *writeback
90  * dirty = false
91  * writeback = false
93  BUG_ON(!PageLocked(page))
95  If Not page_has_buffers(page) Then Return
98  If Only test-and-set exist for PG_writeback. The unconditional operators are* risky: they bypass page accounting. Then * writeback = true
101  head = If we *know* page->private refers to buffer_heads (page)
102  bh = head
103  Do
104  If buffer_locked(bh) Then * writeback = true
107  If buffer_dirty(bh) Then * dirty = true
110  bh = circular list of page's buffers
111  When bh != head cycle