Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\iomap\buffered-io.c Create Date:2022-07-28 20:31:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:map_is_partially_uptodate checks whether blocks within a page are* uptodate or not.* Returns true if all blocks which correspond to a file portion* we want to read within the page are uptodate.

Proto:int iomap_is_partially_uptodate(struct page *page, unsigned long from, unsigned long count)

Type:int

Parameter:

TypeParameterName
struct page *page
unsigned longfrom
unsigned longcount
480  iop = to_iomap_page(page)
481  inode = host
486  len = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsigned, PAGE_SIZE - from, count)
489  first = from >> i_blkbits
490  last = from + len - 1 >> i_blkbits
492  If iop Then
493  When i <= last cycle If Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then
495  Return 0
496  Return 1
499  Return 0