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:void dquot_free_inode(struct inode *inode)

Type:void

Parameter:

TypeParameterName
struct inode *inode
1910  If Not dquot_active(inode) Then Return
1913  dquots = i_dquot(inode)
1914  index = srcu_read_lock - register a new reader for an SRCU-protected structure
1915  spin_lock( & _blocks, i_bytes, maybe i_size )
1916  When cnt < MAXQUOTAS cycle
1919  w_type = Definitions for quota netlink interface
1920  If Not dquots[cnt] Then Continue
1922  spin_lock( & Lock protecting dq_dqb changes )
1923  wtype = info_idq_free(dquots[cnt], 1)
1924  If wtype != Definitions for quota netlink interface Then prepare_warning( & warn[cnt], dquots[cnt], wtype)
1926  dquot_decr_inodes(dquots[cnt], 1)
1927  spin_unlock( & Lock protecting dq_dqb changes )
1929  spin_unlock( & _blocks, i_bytes, maybe i_size )
1930  Dirtify all the dquots - this can block when journalling
1931  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.
1932  Write warnings to the console and send warning messages over netlink.* Note that this function can call into tty and networking code.