函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-29 10:45:13
Last Modify:2020-03-18 10:38:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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
1471  b_state等于 buffer state bitmap (see above)
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_invalidatepagelock_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