Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:int try_to_release_page(struct page *page, gfp_t gfp_mask)

Type:int

Parameter:

TypeParameterName
struct page *page
gfp_tgfp_mask
3498  mapping = See page-flags.h for PAGE_MAPPING_FLAGS
3500  BUG_ON(!PageLocked(page))
3501  If Only test-and-set exist for PG_writeback. The unconditional operators are* risky: they bypass page accounting. Then Return 0
3504  If mapping && releasepage Then Return releasepage(page, gfp_mask)
3506  Return try_to_free_buffers(page)
Caller
NameDescribe
invalidate_complete_pageThis 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.
invalidate_complete_page2This is like invalidate_complete_page(), except it ignores the page's* refcount
shrink_page_listshrink_page_list() returns the number of reclaimed pages
shrink_active_list
fallback_migrate_pageDefault handling if a filesystem does not provide a migration function.
truncate_error_page
block_invalidatepagelock_invalidatepage - invalidate part or all of a buffer-backed page*@page: the page which is affected*@offset: start of the range to invalidate*@length: length of the range to invalidate* block_invalidatepage() is called when all or part of the page has