函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:set_buffer_dirty

函数原型:static inline __attribute__((__always_inline__)) void set_buffer_dirty(struct buffer_head *bh)

返回类型:void

参数:

类型参数名称
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) ))则设置内存位
调用者
名称描述
__set_page_dirty_buffersAdd a page to the dirty page list.* It is a sad fact of life that this function is called from several places* deeply under spinlocking. It may not sleep.* If the page has buffers, the uptodate buffers are set dirty, to preserve
create_empty_buffersWe 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.
attach_nobh_buffersAttach the singly-linked list of buffers created by nobh_write_begin, to* the page (converting it to circular linked list and taking care of page* dirty races).