函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\buffer_head.h Create Date:2022-07-27 13:23:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:buffer_dirty

函数原型:static inline __attribute__((__always_inline__)) int buffer_dirty(const struct buffer_head *bh)

返回类型:int

参数:

类型参数名称
const struct buffer_head *bh
121  返回:如果__builtin_constant_p( Is dirty )则constant_test_bit(( Is dirty ), ( & buffer state bitmap (see above) ))否则variable_test_bit(( Is dirty ), ( & buffer state bitmap (see above) ))
调用者
名称描述
buffer_check_dirty_writebackReturns 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.
write_boundary_blockCalled when we've recently written block `bblock', and it is known that* `bblock' was for a buffer_boundary() buffer. This means that the block at* `bblock + 1' is probably a dirty indirect block. Hunt it down and, if it's* dirty, schedule it for IO
fsync_buffers_list
remove_inode_buffersRemove any clean buffers from the inode's buffer list. This is called* when we're trying to free the inode itself. Those buffers can pin it.* Returns true if all buffers were removed.
mark_buffer_dirtymark_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
__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
__mpage_writepage