函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\dquot.c Create Date:2022-07-29 11:08:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Convert in-memory reserved quotas to real consumed quotas

函数原型:int dquot_claim_space_nodirty(struct inode *inode, qsize_t number)

返回类型:int

参数:

类型参数名称
struct inode *inode
qsize_tnumber
1769  如果非dquot_active(inode)则
1770  加自旋锁
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  自旋锁解锁
1774  返回:0
1777  dquots等于i_dquot(inode)
1778  index等于srcu_read_lock - register a new reader for an SRCU-protected structure
1779  加自旋锁
1781 cnt小于MAXQUOTAS循环
1782  如果dquots[cnt]则
1783  dquot等于dquots[cnt]
1785  加自旋锁
1788  current used space 加等于number
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  自旋锁解锁
1797  Dirtify all the dquots - this can block when journalling
1798  注销过期读锁
1799  返回:0
调用者
名称描述
dquot_claim_block