Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:delete_from_page_cache_batch

Proto:void delete_from_page_cache_batch(struct address_space *mapping, struct pagevec *pvec)

Type:void

Parameter:

TypeParameterName
struct address_space *mapping
struct pagevec *pvec
348  If Not pagevec_count(pvec) Then Return
351  xa_lock_irqsave( & i_pages, flags)
352  When i < pagevec_count(pvec) cycle
353  trace_mm_filemap_delete_from_page_cache(pages[i])
355  unaccount_page_cache_page(mapping, pages[i])
357  page_cache_delete_batch - delete several pages from page cache*@mapping: the mapping to which pages belong*@pvec: pagevec with pages to delete* The function walks over mapping->i_pages and removes pages passed in @pvec* from the mapping
358  xa_unlock_irqrestore( & i_pages, flags)
360  When i < pagevec_count(pvec) cycle page_cache_free_page(mapping, pages[i])
Caller
NameDescribe
truncate_inode_pages_rangeruncate_inode_pages_range - truncate range of pages specified by start & end byte offsets*@mapping: mapping to truncate*@lstart: offset from which to truncate*@lend: offset to which to truncate (inclusive)* Truncate the page cache, removing the pages that