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:iomap_readpage

Proto:int iomap_readpage(struct page *page, const struct iomap_ops *ops)

Type:int

Parameter:

TypeParameterName
struct page *page
const struct iomap_ops *ops
335  struct iomap_readpage_ctx ctx = {cur_page = page}
336  inode = host
340  trace_iomap_readpage(host, 1)
342  When poff < PAGE_SIZE cycle
343  ret = Execute a iomap write on a segment of the mapping that spans a* contiguous range of pages that have identical block mapping state
346  If ret <= 0 Then
347  WARN_ON_ONCE(ret == 0)
349  Break
353  If bio Then
354  submit_bio(bio)
355  WARN_ON_ONCE(!cur_page_in_bio)
356  Else
357  WARN_ON_ONCE(cur_page_in_bio)
358  lock_page - unlock a locked page*@page: the page* Unlocks the page and wakes up sleepers in ___wait_on_page_locked().* Also wakes sleepers in wait_on_page_writeback() because the wakeup* mechanism between PageLocked pages and PageWriteback pages is shared.
366  Return 0