Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-28 20:14:10
Last Modify:2020-03-18 10:38:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__block_write_begin

Proto:int __block_write_begin(struct page *page, loff_t pos, unsigned len, get_block_t *get_block)

Type:int

Parameter:

TypeParameterName
struct page *page
loff_tpos
unsignedlen
get_block_t *get_block
2058  Return __block_write_begin_int(page, pos, len, get_block, NULL)
Caller
NameDescribe
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.