Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\readahead.c Create Date:2022-07-28 14:11:51
Last Modify:2020-03-17 21:13:07 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:see if a page needs releasing upon read_cache_pages() failure* - the caller of read_cache_pages() may have set PG_private or PG_fscache* before calling, such as the NFS fs marking pages that are cached locally* on disk, thus we need to give the fs a

Proto:static void read_cache_pages_invalidate_page(struct address_space *mapping, struct page *page)

Type:void

Parameter:

TypeParameterName
struct address_space *mapping
struct page *page
50  If page_has_private - Determine if page has private stuff*@page: The page to be checked* Determine if a page has private stuff, indicating that release routines* should be invoked upon it. Then
51  If Not Return true if the page was successfully locked Then BUG()
53  See page-flags.h for PAGE_MAPPING_FLAGS = mapping
54  do_invalidatepage(page, 0, PAGE_SIZE)
55  See page-flags.h for PAGE_MAPPING_FLAGS = NULL
56  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.
58  put_page(page)
Caller
NameDescribe
read_cache_pages_invalidate_pageslease a list of pages, invalidating them first if need be
read_cache_pagesad_cache_pages - populate an address space with some pages & start reads against them*@mapping: the address_space*@pages: The address of a list_head which contains the target pages. These* pages have their ->index populated and are otherwise uninitialised.