Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct inode *inode
qsize_tnumber
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
1772  Caller is here responsible for sufficient locking (ie. inode->i_lock)
1773  spin_unlock( & _blocks, i_bytes, maybe i_size )
1774  Return 0
1777  dquots = i_dquot(inode)
1778  index = srcu_read_lock - register a new reader for an SRCU-protected structure
1779  spin_lock( & _blocks, i_bytes, maybe i_size )
1781  When cnt < MAXQUOTAS cycle
1782  If dquots[cnt] Then
1783  dquot = dquots[cnt]
1794  de_reserved_space is managed internally by quota, and protected by* i_lock similar to i_blocks+i_bytes. -= number
1795  Caller is here responsible for sufficient locking (ie. inode->i_lock)
1796  spin_unlock( & _blocks, i_bytes, maybe i_size )
1797  Dirtify all the dquots - this can block when journalling
1798  srcu_read_unlock - unregister a old reader from an SRCU-protected structure.*@ssp: srcu_struct in which to unregister the old reader.*@idx: return value from corresponding srcu_read_lock().* Exit an SRCU read-side critical section.
1799  Return 0
Caller
NameDescribe
dquot_claim_block