函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\readahead.c Create Date:2022-07-27 15:35:32
Last Modify:2020-03-17 21:13:07 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static void read_cache_pages_invalidate_page(struct address_space *mapping, struct page *page)

返回类型:void

参数:

类型参数名称
struct address_space *mapping
struct page *page
50  如果页面私有占用
51  如果非Return true if the page was successfully lockedBUG()
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)
调用者
名称描述
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.