Function report |
Source Code:mm\truncate.c |
Create Date:2022-07-28 14:14:52 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:void pagecache_isize_extended(struct inode *inode, loff_t from, loff_t to)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct inode * | inode | |
| loff_t | from | |
| loff_t | to |
| 867 | bsize = i_blocksize(inode) |
| 878 | If to <= rounded_from || Not (rounded_from & PAGE_SIZE - 1 ) Then Return |
| 881 | index = from >> PAGE_SHIFT determines the page size |
| 884 | If Not page Then Return |
| 890 | If Cleans the PTEs of shared mappings.* (and since clean PTEs should also be readonly, write protects them too)* returns the number of cleaned PTEs. Then Dirty a page |
| Name | Describe |
|---|---|
| truncate_setsize | runcate_setsize - update inode and pagecache for a new file size*@inode: inode*@newsize: new file size* truncate_setsize updates i_size and performs pagecache truncation (if* necessary) to @newsize. It will be typically be called from the filesystem's |
| iomap_write_end |
| 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 |