函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\mpage.c Create Date:2022-07-29 10:46:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:We have our BIO, so we can now mark the buffers clean. Make* sure to only clean buffers which we know we'll be writing.

函数原型:static void clean_buffers(struct page *page, unsigned first_unmapped)

返回类型:void

参数:

类型参数名称
struct page *page
unsignedfirst_unmapped
463  buffer_counter等于0
465  如果非page_has_buffers(page)则返回
467  head等于If we *know* page->private refers to buffer_heads (page)
468  bh等于head
470  循环
471  如果buffer_counter自加恒等于first_unmapped退出
473  clear_buffer_dirty(bh)
474  bh等于 circular list of page's buffers
475 bh不等于head循环
482  如果buffer_heads_over_limitPageUptodate(page)则try_to_free_buffers(page)
调用者
名称描述
clean_page_buffersFor situations where we want to clean all buffers attached to a page.* We don't need to calculate how many buffers are attached to the page,* we just need to specify a number larger than the maximum number of buffers.
__mpage_writepage