函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This operation can block, but only after everything is updated

函数原型:int dquot_alloc_inode(struct inode *inode)

返回类型:int

参数:

类型参数名称
struct inode *inode
1722  ret等于0
1726  如果非dquot_active(inode)则返回:0
1728 cnt小于MAXQUOTAS循环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  加自旋锁
1734 cnt小于MAXQUOTAS循环
1735  如果非dquots[cnt]则继续下一循环
1737  ret等于dquot_add_inodes(dquots[cnt], 1, & warn[cnt])
1738  如果ret
1739 cnt大于等于0循环
1740  如果非dquots[cnt]则继续下一循环
1743  加自旋锁
1747  转到:warn_put_all
1751  warn_put_all :
1752  自旋锁解锁
1753  如果ret恒等于0则Dirtify all the dquots - this can block when journalling
1755  注销过期读锁
1756  Write warnings to the console and send warning messages over netlink.* Note that this function can call into tty and networking code.
1757  返回:ret