Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Get another userspace page. Returns an ERR_PTR on error. Pages are* buffered inside the dio so that we can call get_user_pages() against a* decent number of pages, less frequently. To provide nicer use of the* L1 cache.

Proto:static inline struct page *dio_get_page(struct dio *dio, struct dio_submit *sdio)

Type:struct page

Parameter:

TypeParameterName
struct dio *dio
struct dio_submit *sdio
214  If How many pages are in the queue? == 0 Then
217  ret = Go grab and pin some userspace pages. Typically we'll get 64 at a time.
218  If ret Then Return ERR_PTR(ret)
220  BUG_ON(How many pages are in the queue? == 0)
222  Return page buffer [xt page to process ]
Caller
NameDescribe
do_direct_IOWalk the user pages, and the file, mapping blocks to disk and generating* a sequence of (page,offset,len,block) mappings. These mappings are injected* into submit_page_section(), which takes care of the next stage of submission