函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:drop_buffers

函数原型:static int drop_buffers(struct page *page, struct buffer_head **buffers_to_free)

返回类型:int

参数:

类型参数名称
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  循环
3255  如果ry_to_free_buffers() checks if all the buffers on this particular page* are unused, and releases them if so则转到:failed
3257  bh等于 circular list of page's buffers
3258 bh不等于head循环
3260  循环
3261  next等于 circular list of page's buffers
3263  如果 mapping this buffer is associated with The buffer's backing address_space's private_lock must be held
3265  bh等于next
3266 bh不等于head循环
3267  buffers_to_free等于head
3268  __clear_page_buffers(page)
3269  返回:1
3270  failed :
3271  返回:0
调用者
名称描述
try_to_free_buffers