Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct address_space * | mapping | |
unsigned long | start | |
unsigned long | end |
553 | count = 0 |
556 | pagevec_init( & pvec) |
560 | When i < pagevec_count( & pvec) cycle |
571 | Continue |
574 | If Not Return true if the page was successfully locked Then Continue |
577 | WARN_ON(Get index of the page with in radix-tree* (TODO: remove once hugetlb pages will have ->index in PAGE_SIZE) != index) |
607 | ret = Safely invalidate one page from its pagecache mapping.* It only drops clean, unused pages. The page must be locked.* Returns 1 if the page is successfully invalidated, otherwise 0. |
620 | pagevec_release( & pvec) |
621 | cond_resched() |
622 | index++ |
624 | Return count |
Name | Describe |
---|---|
generic_fadvise | POSIX_FADV_WILLNEED could set PG_Referenced, and POSIX_FADV_NOREUSE could* deactivate the pages and clear PG_Referenced. |
invalidate_bdev | Invalidate 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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |