Function report |
Source Code:fs\buffer.c |
Create Date:2022-07-28 20:14:09 |
| Last Modify:2020-03-18 10:38:29 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:discard_buffer
Proto:static void discard_buffer(struct buffer_head *bh)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct buffer_head * | bh |
| 1468 | lock_buffer(bh) |
| 1469 | clear_buffer_dirty(bh) |
| 1470 | b_bdev = NULL |
| 1472 | cycle |
| 1473 | b_state_old = cmpxchg( & buffer state bitmap (see above) , b_state, (b_state & ~Bits that are cleared during an invalidate )) |
| 1475 | If b_state_old == b_state Then Break |
| 1477 | b_state = b_state_old |
| 1479 | unlock_buffer(bh) |
| Name | Describe |
|---|---|
| block_invalidatepage | lock_invalidatepage - invalidate part or all of a buffer-backed page*@page: the page which is affected*@offset: start of the range to invalidate*@length: length of the range to invalidate* block_invalidatepage() is called when all or part of the page has |
| 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 |