Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\buffer_head.h Create Date:2022-07-28 12:16:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_buffer_dirty

Proto:static inline __attribute__((__always_inline__)) void set_buffer_dirty(struct buffer_head *bh)

Type:void

Parameter:

TypeParameterName
struct buffer_head *bh
121  If Not If __builtin_constant_p( Is dirty ) Then constant_test_bit(( Is dirty ), ( & buffer state bitmap (see above) )) Else variable_test_bit(( Is dirty ), ( & buffer state bitmap (see above) )) Then Atomically set a bit in memory
Caller
NameDescribe
__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).