Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| struct buffer_head * | bh | |
| int | op_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 |
| 3204 | ret = submit_bh(REQ_OP_WRITE, op_flags, bh) |
| 3205 | wait_on_buffer(bh) |
| 3208 | Else |
| 3209 | unlock_buffer(bh) |
| 3211 | Return ret |
| Name | Describe |
|---|---|
| sync_dirty_buffer |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |