函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__block_commit_write

函数原型:static int __block_commit_write(struct inode *inode, struct page *page, unsigned from, unsigned to)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct page *page
unsignedfrom
unsignedto
2066  partial等于0
2070  bh等于head等于If we *know* page->private refers to buffer_heads (page)
2071  blocksize等于 size of mapping
2073  block_start等于0
2074  循环
2075  block_end等于block_startblocksize
2076  如果block_end小于等于fromblock_start大于等于to
2079  否则
2083  clear_buffer_new(bh)
2085  block_start等于block_end
2086  bh等于 circular list of page's buffers
2087 bh不等于head循环
2095  如果非partialSetPageUptodate(page)
2097  返回:0
调用者
名称描述
block_write_end
block_commit_write