函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-29 10:45:06
Last Modify:2020-03-18 10:38:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:End-of-IO handler helper function which does not touch the bh after* unlocking it

函数原型:static void __end_buffer_read_notouch(struct buffer_head *bh, int uptodate)

返回类型:void

参数:

类型参数名称
struct buffer_head *bh
intuptodate
152  如果uptodate
153  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.
154  否则
156  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.
158  unlock_buffer(bh)
调用者
名称描述
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_read_nobhbh_write_begin()'s prereads are special: the buffer_heads are freed* immediately, while under the page lock. So it needs a special end_io* handler which does not touch the bh after unlocking it.