函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:block_write_end

函数原型:int block_write_end(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned copied, struct page *page, void *fsdata)

返回类型:int

参数:

类型参数名称
struct file *file
struct address_space *mapping
loff_tpos
unsignedlen
unsignedcopied
struct page *page
void *fsdata
2133  inode等于host
2136  start等于pos按位与PAGE_SIZE减1
2138  如果此条件成立可能性小(为编译器优化)(copied < len)则
2151  如果非PageUptodate(page)则copied等于0
2154  If a page has any new buffers, zero them out here, and mark them uptodate* and dirty so they'll be written out (in order to prevent uninitialised* block data from leaking). And clear the new bit.
2156  flush_dcache_page(page)
2159  __block_commit_write(inode, page, start, start + copied)
2161  返回:copied
调用者
名称描述
generic_write_end
blkdev_write_end
iomap_write_end