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:__d_instantiate
Proto:static void __d_instantiate(struct dentry *dentry, struct inode *inode)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct dentry * | dentry | |
| struct inode * | inode |
| 1918 | add_flags = d_flags_for_inode(inode) |
| 1919 | WARN_ON(d_in_lookup(dentry)) |
| 1925 | If protected by d_lock & DCACHE_LRU_LIST Then this_cpu_dec(nr_dentry_negative) |
| 1927 | hlist_add_head( & de alias list , & i_dentry) |
| 1928 | raw_write_seqcount_begin( & per dentry seqlock ) |
| 1929 | __d_set_inode_and_type(dentry, inode, add_flags) |
| 1930 | raw_write_seqcount_end( & per dentry seqlock ) |
| 1931 | fsnotify_update_flags(dentry) |
| 1932 | spin_unlock( & d_lock) |
| Name | Describe |
|---|---|
| d_instantiate | d_instantiate - fill in inode information for a dentry*@entry: dentry to complete*@inode: inode to attach to this dentry* Fill in inode information in the entry |
| d_instantiate_new | This should be equivalent to d_instantiate() + unlock_new_inode(),* with lockdep-related part of unlock_new_inode() done before* anything else. Use that instead of open-coding d_instantiate()/* unlock_new_inode() combinations. |
| 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 |