Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\filemap.c Create Date:2022-07-28 14:00:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:void __delete_from_page_cache(struct page *page, void *shadow)

Type:void

Parameter:

TypeParameterName
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
Caller
NameDescribe
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