| Function report | 
| Source Code: fs\dcache.c | Create Date:2022-07-28 20:07:28 | 
| Last Modify:2020-03-18 10:27:32 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:prune dcache
Proto:void shrink_dcache_parent(struct dentry *parent)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct dentry * | parent | 
| 1542 | cycle | 
| 1543 | struct select_data data = {start = parent} | 
| 1548 | If Not list_empty - tests whether a list is empty*@head: the list to test. Then | 
| 1549 | shrink_dentry_list( & dispose) | 
| 1550 | Continue | 
| 1553 | cond_resched() | 
| 1554 | If Not found Then Break | 
| 1556 | victim = NULL | 
| 1558 | If victim Then | 
| 1561 | If Not Lock a dentry from shrink list Then | 
| 1562 | spin_unlock( & d_lock) | 
| 1564 | Else | 
| 1566 | parent = parent directory | 
| 1567 | If parent != victim Then __dput_to_list(parent, & dispose) | 
| 1569 | __dentry_kill(victim) | 
| 1572 | If Not list_empty - tests whether a list is empty*@head: the list to test. Then shrink_dentry_list( & dispose) | 
| Name | Describe | 
|---|---|
| vfs_rename | vfs_rename - rename a filesystem object*@old_dir: parent of source*@old_dentry: source*@new_dir: parent of destination*@new_dentry: destination*@delegated_inode: returns an inode needing a delegation break*@flags: rename flags | 
| do_one_tree | |
| d_invalidate | invalidate a dentry | 
| simple_fill_super | he inodes created here are not hashed. If you use iunique to generate* unique inode values later for this filesystem, then you must take care* to pass it an appropriate max_reserved value to avoid collisions. | 
| shrink_dcache_inode | Try to evict the inode's dentries from the dentry cache. If the inode is a* directory, then it can have at most one dentry; however, that dentry may be* pinned by child dentries, so first try to evict the children too. | 
| 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 |