函数逻辑报告 |
Source Code:fs\buffer.c |
Create Date:2022-07-29 10:45:13 |
Last Modify:2020-03-18 10:38:29 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:discard_buffer
函数原型:static void discard_buffer(struct buffer_head *bh)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct buffer_head * | bh |
1468 | lock_buffer(bh) |
1469 | clear_buffer_dirty(bh) |
1470 | b_bdev = NULL |
1472 | 循环 |
1473 | b_state_old等于cmpxchg( & buffer state bitmap (see above) , b_state, (b_state & ~Bits that are cleared during an invalidate )) |
1475 | 如果b_state_old恒等于b_state则退出 |
1477 | b_state等于b_state_old |
1479 | unlock_buffer(bh) |
名称 | 描述 |
---|---|
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |