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:This operation can block, but only after everything is updated

Proto:int dquot_alloc_inode(struct inode *inode)

Type:int

Parameter:

TypeParameterName
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
1731  dquots = i_dquot(inode)
1732  index = srcu_read_lock - register a new reader for an SRCU-protected structure
1733  spin_lock( & _blocks, i_bytes, maybe i_size )
1734  When cnt < MAXQUOTAS cycle
1735  If Not dquots[cnt] Then Continue
1737  ret = dquot_add_inodes(dquots[cnt], 1, & warn[cnt])
1738  If ret Then
1739  When cnt >= 0 cycle
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
1755  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.
1756  Write warnings to the console and send warning messages over netlink.* Note that this function can call into tty and networking code.
1757  Return ret