函数逻辑报告

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

函数原型:void dquot_reclaim_space_nodirty(struct inode *inode, qsize_t number)

返回类型:void

参数:

类型参数名称
struct inode *inode
qsize_tnumber
1811  如果非dquot_active(inode)则
1812  加自旋锁
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  自旋锁解锁
1816  返回
1819  dquots等于i_dquot(inode)
1820  index等于srcu_read_lock - register a new reader for an SRCU-protected structure
1821  加自旋锁
1823 cnt小于MAXQUOTAS循环
1824  如果dquots[cnt]则
1825  dquot等于dquots[cnt]
1827  加自旋锁
1831  current used space 减等于number
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  自旋锁解锁
1839  Dirtify all the dquots - this can block when journalling
1840  注销过期读锁
1841  返回
调用者
名称描述
dquot_reclaim_block