函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:put_bh

函数原型:static inline void put_bh(struct buffer_head *bh)

返回类型:void

参数:

类型参数名称
struct buffer_head *bh
288  smp_mb__before_atomic()
289  atomic_dec( & users using this buffer_head )
调用者
名称描述
end_buffer_read_syncDefault synchronous end-of-IO handler.. Just mark it up-to-date and* unlock the buffer. This is what ll_rw_block uses too.
end_buffer_write_sync
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
__brelseDecrement a buffer_head's reference count