Function report |
Source Code:fs\inode.c |
Create Date:2022-07-28 20:07:58 |
Last Modify:2020-03-18 19:19:59 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:insert_inode_locked
Proto:int insert_inode_locked(struct inode *inode)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct inode * | inode |
1461 | head = inode_hashtable + hash(sb, ino) |
1463 | When 1 cycle |
1465 | spin_lock( & inode_hash_lock) |
1467 | If Stat data, not accessed from path walking != ino Then Continue |
1471 | spin_lock( & _blocks, i_bytes, maybe i_size ) |
1473 | spin_unlock( & _blocks, i_bytes, maybe i_size ) |
1474 | Continue |
1476 | Break |
1478 | If Value is more likely to compile time(!old) Then |
1479 | spin_lock( & _blocks, i_bytes, maybe i_size ) |
1481 | hlist_add_head( & i_hash, head) |
1482 | spin_unlock( & _blocks, i_bytes, maybe i_size ) |
1483 | spin_unlock( & inode_hash_lock) |
1484 | Return 0 |
1486 | If Value for the false possibility is greater at compile time(Misc & I_CREATING) Then |
1487 | spin_unlock( & _blocks, i_bytes, maybe i_size ) |
1488 | spin_unlock( & inode_hash_lock) |
1489 | Return -EBUSY |
1492 | spin_unlock( & _blocks, i_bytes, maybe i_size ) |
1493 | spin_unlock( & inode_hash_lock) |
1496 | put an inode |
1497 | Return -EBUSY |
1499 | put an inode |
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 |