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_commit_write

Proto:static int __block_commit_write(struct inode *inode, struct page *page, unsigned from, unsigned to)

Type:int

Parameter:

TypeParameterName
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  Do
2075  block_end = block_start + blocksize
2076  If block_end <= from || block_start >= to Then
2079  Else
2083  clear_buffer_new(bh)
2085  block_start = block_end
2086  bh = circular list of page's buffers
2087  When bh != head cycle
2095  If Not partial Then SetPageUptodate(page)
2097  Return 0
Caller
NameDescribe
block_write_end
block_commit_write