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:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:iomap_iop_set_range_uptodate

Proto:static void iomap_iop_set_range_uptodate(struct page *page, unsigned off, unsigned len)

Type:void

Parameter:

TypeParameterName
struct page *page
unsignedoff
unsignedlen
146  iop = to_iomap_page(page)
147  inode = host
148  first = off >> i_blkbits
149  last = off + len - 1 >> i_blkbits
150  bool uptodate = true
154  spin_lock_irqsave( & uptodate_lock, flags)
155  When i < PAGE_SIZE / i_blocksize(inode) cycle
156  If i >= first && i <= last Then Atomically set a bit in memory
158  Else if Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then uptodate = false
162  If uptodate Then SetPageUptodate(page)
164  spin_unlock_irqrestore( & uptodate_lock, flags)
Caller
NameDescribe
iomap_set_range_uptodate