函数逻辑报告

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_write_begin

函数原型:int __block_write_begin(struct page *page, loff_t pos, unsigned len, get_block_t *get_block)

返回类型:int

参数:

类型参数名称
struct page *page
loff_tpos
unsignedlen
get_block_t *get_block
2058  返回:__block_write_begin_int(page, pos, len, get_block, NULL)
调用者
名称描述
block_write_beginlock_write_begin takes care of the basic task of block allocation and* bringing partial write blocks uptodate first.* The filesystem needs to handle block truncation upon failure.
block_page_mkwritelock_page_mkwrite() is not allowed to change the file size as it gets* called from a page fault handler when a page is first dirtied
nobh_write_beginOn entry, the page is fully not uptodate.* On exit the page is fully uptodate in the areas outside (from,to)* The filesystem needs to handle block truncation upon failure.