函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\iomap\buffered-io.c Create Date:2022-07-29 11:07:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:iomap_iop_set_range_uptodate

函数原型:static void iomap_iop_set_range_uptodate(struct page *page, unsigned off, unsigned len)

返回类型:void

参数:

类型参数名称
struct page *page
unsignedoff
unsignedlen
146  iop等于to_iomap_page(page)
147  inode等于host
148  first等于off右移i_blkbits
149  last等于offlen减1右移i_blkbits
150  bool uptodate = true
154  spin_lock_irqsave( & uptodate_lock, flags)
155 i小于PAGE_SIZEi_blocksize(inode)循环
156  如果i大于等于firsti小于等于last设置内存位
158  否则如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting fromuptodate = false
162  如果uptodateSetPageUptodate(page)
164  spin_unlock_irqrestore( & uptodate_lock, flags)
调用者
名称描述
iomap_set_range_uptodate