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:mark_buffer_dirty - mark a buffer_head as needing writeout*@bh: the buffer_head to mark dirty* mark_buffer_dirty() will set the dirty bit against the buffer, then set* its backing page dirty, then tag the page as dirty in the page cache* and then attach

Proto:void mark_buffer_dirty(struct buffer_head *bh)

Type:void

Parameter:

TypeParameterName
struct buffer_head *bh
1128  WARN_ON_ONCE(!Emit the buffer bitops functions. Note that there are also functions* of the form "mark_buffer_foo()". These are higher-level functions which* do something in addition to setting a b_state bit.)
1130  lock_dirty_buffer - mark a buffer dirty*@bh: buffer_head being dirtied* Called from mark_buffer_dirty().
1138  If buffer_dirty(bh) Then
1139  smp_mb()
1140  If buffer_dirty(bh) Then Return
1144  If Not test_set_buffer_dirty(bh) Then
1145  page = the page this bh is mapped to
1146  struct address_space * mapping = NULL
1148  lock_page_memcg - lock a page->mem_cgroup binding*@page: the page* This function protects unlocked LRU pages from being moved to* another cgroup
1149  If Not TestSetPageDirty(page) Then
1154  lock_page_memcg - unlock a page->mem_cgroup binding*@page: the page
1155  If mapping Then __mark_inode_dirty - internal function*@inode: inode to mark*@flags: what kind of dirty (i
Caller
NameDescribe
mark_buffer_dirty_inode
page_zero_new_buffersIf a page has any new buffers, zero them out here, and mark them uptodate* and dirty so they'll be written out (in order to prevent uninitialised* block data from leaking). And clear the new bit.
__block_write_begin_int
__block_commit_write
block_truncate_page