Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Check whether the contents of buf is OK to access. Since the content* is a page cache page, IO may be in flight.

Proto:static int page_cache_pipe_buf_confirm(struct pipe_inode_info *pipe, struct pipe_buffer *buf)

Type:int

Parameter:

TypeParameterName
struct pipe_inode_info *pipe
struct pipe_buffer *buf
106  page = page
109  If Not PageUptodate(page) Then
110  lock_page may only be called if we have the page's inode pinned.
117  err = -ENODATA
118  Go to error
124  If Not PageUptodate(page) Then
125  err = -EIO
126  Go to error
132  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.
135  Return 0
136  error :
137  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.
138  Return err