Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-28 20:14:06
Last Modify:2020-03-18 10:38:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:End-of-IO handler helper function which does not touch the bh after* unlocking it

Proto:static void __end_buffer_read_notouch(struct buffer_head *bh, int uptodate)

Type:void

Parameter:

TypeParameterName
struct buffer_head *bh
intuptodate
152  If uptodate Then
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  Else
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)
Caller
NameDescribe
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.