函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Delete a page from the page cache and free it. Caller has to make* sure the page is locked and that nobody else uses it - or that usage* is safe. The caller must hold the i_pages lock.

函数原型:void __delete_from_page_cache(struct page *page, void *shadow)

返回类型:void

参数:

类型参数名称
struct page *page
void *shadow
233  mapping等于 See page-flags.h for PAGE_MAPPING_FLAGS
235  trace_mm_filemap_delete_from_page_cache(page)
237  unaccount_page_cache_page(mapping, page)
238  Lock ordering:* ->i_mmap_rwsem (truncate_pagecache)* ->private_lock (__free_pte->__set_page_dirty_buffers)* ->swap_lock (exclusive_swap_page, others)* ->i_pages lock* ->i_mutex* ->i_mmap_rwsem (truncate->unmap_mapping_range)* ->mmap_sem* ->i_mmap_rwsem
调用者
名称描述
delete_from_page_cachedelete_from_page_cache - delete page from page cache*@page: the page which the kernel is trying to remove from page cache* This must be called only on pages that have been verified to be in the page* cache and locked
invalidate_complete_page2This is like invalidate_complete_page(), except it ignores the page's* refcount
__remove_mappingSame as remove_mapping, but if the page is removed from the mapping, it* gets returned with a refcount of 0.
__split_huge_page