Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

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

Type:void

Parameter:

TypeParameterName
struct address_space *mapping
struct pagevec *pvec
297  XA_STATE() - Declare an XArray operation state.*@name: Name of this operation state (usually xas).*@array: Array to operate on.*@index: Initial index of interest.* Declare and initialise an xa_state on the stack.(xas, & i_pages, index)
298  total_pages = 0
299  i = 0
302  mapping_set_update( & xas, mapping)
304  If i >= pagevec_count(pvec) Then Break
308  If xa_is_value() - Determine if an entry is a value.*@entry: XArray entry.* Context: Any context.* Return: True if the entry is a value, false if it is a pointer. Then Continue
317  If page != pages[i] Then
318  VM_BUG_ON_PAGE( Our offset within mapping. > index, page)
320  Continue
323  WARN_ON_ONCE(!PageLocked(page))
325  If Our offset within mapping. == xa_index Then See page-flags.h for PAGE_MAPPING_FLAGS = NULL
334  If Our offset within mapping. + Returns the number of pages in this potentially compound page. - 1 == xa_index Then i++
336  xas_store() - Store this entry in the XArray
337  total_pages++
339  nrpages -= total_pages
Caller
NameDescribe
delete_from_page_cache_batch