Function report |
Source Code:fs\quota\dquot.c |
Create Date:2022-07-28 20:32:54 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:This operation can block, but only after everything is updated
Proto:int dquot_alloc_inode(struct inode *inode)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct inode * | inode |
1722 | ret = 0 |
1726 | If Not dquot_active(inode) Then Return 0 |
1728 | When cnt < MAXQUOTAS cycle w_type = Definitions for quota netlink interface |
1733 | spin_lock( & _blocks, i_bytes, maybe i_size ) |
1738 | If ret Then |
1743 | spin_lock( & Lock protecting dq_dqb changes ) |
1744 | dquot_decr_inodes(dquots[cnt], 1) |
1745 | spin_unlock( & Lock protecting dq_dqb changes ) |
1747 | Go to warn_put_all |
1751 | warn_put_all : |
1752 | spin_unlock( & _blocks, i_bytes, maybe i_size ) |
1753 | If ret == 0 Then Dirtify all the dquots - this can block when journalling |
1757 | Return ret |
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 |