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:Convert in-memory reserved quotas to real consumed quotas
Proto:int dquot_claim_space_nodirty(struct inode *inode, qsize_t number)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct inode * | inode | |
qsize_t | number |
1769 | If Not dquot_active(inode) Then |
1770 | spin_lock( & _blocks, i_bytes, maybe i_size ) |
1771 | de_reserved_space is managed internally by quota, and protected by* i_lock similar to i_blocks+i_bytes. -= number |
1773 | spin_unlock( & _blocks, i_bytes, maybe i_size ) |
1774 | Return 0 |
1779 | spin_lock( & _blocks, i_bytes, maybe i_size ) |
1785 | spin_lock( & Lock protecting dq_dqb changes ) |
1786 | If WARN_ON_ONCE(current reserved space for delalloc < number) Then number = current reserved space for delalloc |
1788 | current used space += number |
1790 | spin_unlock( & Lock protecting dq_dqb changes ) |
1794 | de_reserved_space is managed internally by quota, and protected by* i_lock similar to i_blocks+i_bytes. -= number |
1796 | spin_unlock( & _blocks, i_bytes, maybe i_size ) |
1799 | Return 0 |
Name | Describe |
---|---|
dquot_claim_block |
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 |