Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:For a data-integrity writeout, we need to wait upon any in-progress I/O* and then start new I/O and then wait upon it. The caller must have a ref on* the buffer_head.

Proto:int __sync_dirty_buffer(struct buffer_head *bh, int op_flags)

Type:int

Parameter:

TypeParameterName
struct buffer_head *bh
intop_flags
3197  ret = 0
3199  WARN_ON(atomic_read( & users using this buffer_head ) < 1)
3200  lock_buffer(bh)
3201  If test_clear_buffer_dirty(bh) Then
3202  get_bh(bh)
3203  I/O completion = end_buffer_write_sync
3204  ret = submit_bh(REQ_OP_WRITE, op_flags, bh)
3205  wait_on_buffer(bh)
3206  If Not ret && Not 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. Then ret = -EIO
3208  Else
3209  unlock_buffer(bh)
3211  Return ret
Caller
NameDescribe
sync_dirty_buffer