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:Try to do a lockless dput(), and return whether that was successful
Proto:static inline bool fast_dput(struct dentry *dentry)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct dentry * | dentry |
741 | If Value for the false possibility is greater at compile time(ret < 0) Then |
743 | If count > 1 Then |
748 | Return false |
754 | If ret Then Return true |
778 | smp_rmb() |
779 | d_flags = READ_ONCE( protected by d_lock ) |
783 | If d_flags == (Recently used, don't discard. | DCACHE_LRU_LIST) && Not d_unhashed - is dentry hashed*@dentry: entry to check* Returns true if the dentry passed is not currently hashed. Then Return true |
799 | If count Then |
800 | spin_unlock( & d_lock) |
801 | Return true |
809 | count = 1 |
810 | Return false |
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 |
dput_to_list |
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 |