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 allocated space back to in-memory reserved quotas

Proto:void dquot_reclaim_space_nodirty(struct inode *inode, qsize_t number)

Type:void

Parameter:

TypeParameterName
struct inode *inode
qsize_tnumber
1811  If Not dquot_active(inode) Then
1812  spin_lock( & _blocks, i_bytes, maybe i_size )
1813  de_reserved_space is managed internally by quota, and protected by* i_lock similar to i_blocks+i_bytes. += number
1814  __inode_sub_bytes(inode, number)
1815  spin_unlock( & _blocks, i_bytes, maybe i_size )
1816  Return
1819  dquots = i_dquot(inode)
1820  index = srcu_read_lock - register a new reader for an SRCU-protected structure
1821  spin_lock( & _blocks, i_bytes, maybe i_size )
1823  When cnt < MAXQUOTAS cycle
1824  If dquots[cnt] Then
1825  dquot = dquots[cnt]
1836  de_reserved_space is managed internally by quota, and protected by* i_lock similar to i_blocks+i_bytes. += number
1837  __inode_sub_bytes(inode, number)
1838  spin_unlock( & _blocks, i_bytes, maybe i_size )
1839  Dirtify all the dquots - this can block when journalling
1840  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.
1841  Return
Caller
NameDescribe
dquot_reclaim_block