Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:discard_buffer

Proto:static void discard_buffer(struct buffer_head *bh)

Type:void

Parameter:

TypeParameterName
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  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)
Caller
NameDescribe
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