Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:validate_mapping_pages - Invalidate all the unlocked pages of one inode*@mapping: the address_space which holds the pages to invalidate*@start: the offset 'from' which to invalidate*@end: the offset 'to' which to invalidate (inclusive)* This function only

Proto:unsigned long invalidate_mapping_pages(struct address_space *mapping, unsigned long start, unsigned long end)

Type:unsigned long

Parameter:

TypeParameterName
struct address_space *mapping
unsigned longstart
unsigned longend
551  index = start
553  count = 0
556  pagevec_init( & pvec)
557  When index <= end && pagevec_lookup_entries - gang pagecache lookup*@pvec: Where the resulting entries are placed*@mapping: The address_space to search*@start: The starting entry index*@nr_entries: The maximum number of pages*@indices: The cache indices corresponding to the cycle
560  When i < pagevec_count( & pvec) cycle
561  page = pages[i]
564  index = indices[i]
565  If index > end Then Break
617  count += ret
619  pagevec_remove_exceptionals - pagevec exceptionals pruning*@pvec: The pagevec to prune* pagevec_lookup_entries() fills both pages and exceptional radix* tree entries into the pagevec
620  pagevec_release( & pvec)
621  cond_resched()
622  index++
624  Return count
Caller
NameDescribe
generic_fadvisePOSIX_FADV_WILLNEED could set PG_Referenced, and POSIX_FADV_NOREUSE could* deactivate the pages and clear PG_Referenced.
invalidate_bdevInvalidate clean unused buffers and pagecache.
drop_pagecache_sb
invalidate_remote_inode
__generic_file_write_iter__generic_file_write_iter - write data to a file*@iocb: IO state structure (file, offset, etc.)*@from: iov_iter with data to write* This function does all the work needed for actually writing data to a* file