Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:drop_buffers

Proto:static int drop_buffers(struct page *page, struct buffer_head **buffers_to_free)

Type:int

Parameter:

TypeParameterName
struct page *page
struct buffer_head **buffers_to_free
3250  head = If we *know* page->private refers to buffer_heads (page)
3253  bh = head
3254  Do
3255  If ry_to_free_buffers() checks if all the buffers on this particular page* are unused, and releases them if so Then Go to failed
3257  bh = circular list of page's buffers
3258  When bh != head cycle
3260  Do
3261  next = circular list of page's buffers
3263  If mapping this buffer is associated with Then The buffer's backing address_space's private_lock must be held
3265  bh = next
3266  When bh != head cycle
3267  buffers_to_free = head
3268  __clear_page_buffers(page)
3269  Return 1
3270  failed :
3271  Return 0
Caller
NameDescribe
try_to_free_buffers