Function report |
Source Code:mm\page-writeback.c |
Create Date:2022-07-28 14:11:16 |
| Last Modify:2022-05-23 13:25:58 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Dirty a page
Proto:int set_page_dirty(struct page *page)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct page * | page |
| 2551 | mapping = page_mapping(page) |
| 2553 | page = compound_head(page) |
| 2554 | If Value is more likely to compile time(mapping) Then |
| 2555 | ( = set_page_dirty |
| 2566 | If PG_readahead is only used for reads; PG_reclaim is only for writes Then PG_readahead is only used for reads; PG_reclaim is only for writes |
| 2569 | If Not spd Then spd = __set_page_dirty_buffers |
| 2575 | If Not TestSetPageDirty(page) Then Return 1 |
| 2578 | Return 0 |
| Name | Describe |
|---|---|
| set_page_dirty_lock | set_page_dirty() is racy if the caller has no reference against* CPU could truncate the page off the mapping and then free the mapping.* Usually, the page _is_ locked, or the caller is a user-space process which |
| clear_page_dirty_for_io | Clear a page's dirty flag, while caring for dirty memory accounting.* Returns true if the page was previously dirty.* This is for preparing to put the page under writeout. We leave the page* tagged as dirty in the xarray so that a concurrent write-for-sync |
| pagecache_isize_extended | pagecache_isize_extended - update pagecache after extension of i_size*@inode: inode for which i_size was extended*@from: original inode size*@to: new inode size* Handle extension of inode size either caused by extending truncate or by |
| follow_page_pte | |
| zap_pte_range | |
| fault_dirty_shared_page | Handle dirtying of a page in shared file mapping on a write fault.* The function expects the page to be locked and unlocks it. |
| try_to_unmap_one | @arg: enum ttu_flags will be passed to this argument |
| end_swap_bio_write | |
| __swap_writepage | |
| add_to_swap | add_to_swap - allocate swap space for a page*@page: page we want to move to swap* Allocate swap space for the page and add the page to the* swap cache. Caller needs to hold the page lock. |
| __unmap_hugepage_range | |
| huge_add_to_page_cache | |
| write_protect_page | |
| __split_huge_pmd_locked | |
| block_page_mkwrite | lock_page_mkwrite() is not allowed to change the file size as it gets* called from a page fault handler when a page is first dirtied |
| nobh_write_end | |
| nobh_truncate_page | |
| iomap_page_mkwrite_actor |
| 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 |