Function report |
Source Code:fs\dcache.c |
Create Date:2022-07-28 20:07:26 |
| Last Modify:2020-03-18 10:27:32 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Finish off a dentry we've decided to kill.* Returns dentry requiring refcount drop, or NULL if we're done.
Proto:static struct dentry *dentry_kill(struct dentry *dentry)__releases(dentry->d_lock)
Type:struct dentry
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct dentry * | dentry | >d_lock must be held, returns with it unlocked. |
| 670 | If inode && Value for the false possibility is greater at compile time(!spin_trylock( & _blocks, i_bytes, maybe i_size )) Then Go to slow_positive |
| 674 | parent = parent directory |
| 675 | If Value for the false possibility is greater at compile time(!spin_trylock( & d_lock)) Then |
| 677 | If Value is more likely to compile time(inode || ! Where the name belongs to - NULL is * negative ) Then Go to got_locks |
| 680 | If parent Then spin_unlock( & d_lock) |
| 683 | Go to slow_positive |
| 687 | Return parent |
| 689 | slow_positive : |
| 690 | spin_unlock( & d_lock) |
| 691 | spin_lock( & _blocks, i_bytes, maybe i_size ) |
| 694 | got_locks : |
| 695 | If Value for the false possibility is greater at compile time(count != 1) Then |
| 696 | count-- |
| 699 | Return parent |
| 702 | If inode Then spin_unlock( & _blocks, i_bytes, maybe i_size ) |
| 704 | If parent Then spin_unlock( & d_lock) |
| 706 | spin_unlock( & d_lock) |
| 707 | Return NULL |
| Name | Describe |
|---|---|
| dput | dput - release a dentry*@dentry: dentry to release * Release a dentry. This will drop the usage count and if appropriate* call the dentry unlink method as well as removing it from the queues and* releasing its resources |
| 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 |