函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\truncate.c Create Date:2022-07-27 15:38:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:This is for invalidate_mapping_pages(). That function can be called at* any time, and is not supposed to throw away dirty pages. But pages can* be marked dirty at any time too, so use remove_mapping which safely* discards clean, unused pages.

函数原型:static int invalidate_complete_page(struct address_space *mapping, struct page *page)

返回类型:int

参数:

类型参数名称
struct address_space *mapping
struct page *page
209  如果 See page-flags.h for PAGE_MAPPING_FLAGS 不等于mapping则返回:0
212  如果页面私有占用且非ry_to_release_page() - release old fs-specific metadata on a page*@page: the page which the kernel is trying to free*@gfp_mask: memory allocation flags (and I/O mode)* The address_space is to try to release any data against the page则返回:0
215  ret等于remove_mapping(mapping, page)
217  返回:ret
调用者
名称描述
invalidate_inode_pageSafely invalidate one page from its pagecache mapping.* It only drops clean, unused pages. The page must be locked.* Returns 1 if the page is successfully invalidated, otherwise 0.